Skip to content


The rmuser.a action is the first version of the rmuser action in the Ultra blockchain. This action allows the creator of a group to remove one or more users from a specified group. The user account names will be removed from the users.a table and the nr_users field in the groups.a table will be updated accordingly.


  • The creator of the group can remove users from it.
  • The nr_users field in groups.a table is decremented by the number of users removed.
  • The action will fail if any of the user names are not in the group.

Action Parameters

NameC++ TypeJavaScript TypeRemarks
creatornameStringThe account that originally created the group.
group_iduint64_tNumber/StringThe ID used to identify the group to remove the user from.
usersvector<name>Array of StringThe names of the users to be removed from the group.
memostringStringA memo string.


  • The creator should be the original creator of the group specified by group_id.
  • The users array should not be empty.

CLI - cleos

To remove users from a group, use the following cleos command:

cleos push action rmuser.a '{"creator": "bob", "group_id": 1, "users" : ["carol", "daniel"], "memo": "remove two users"}' -p bob@active

JavaScript - eosjs

You can also use the following eosjs code snippet to remove users from a group:

await api.transact({
  actions: [
      "account": "",
      "name": "rmuser.a",
      "authorization": [{ "actor": "bob", "permission": "active" }],
      "data": {
        "creator": "bob",
        "group_id": 1,
        "users": ["carol", "daniel"],
        "memo": "remove two users"