Skip to main content

createGroup(groupName, groupId, seed)

Used to create a new group within the RBAC (Role-Based Access Control) system. On EVM this call returns the transaction object together with the groupId, so you can record the ID that was generated for the group name.

Create Group Code Examples

fetchGroup(owner, groupId, wssBaseUrl)

Fetches group information from the RBAC system based on the provided group ID and owner’s address.

Fetch Group Code Examples

fetchGroups(owner, wssBaseUrl)

Used to fetch all the groups associated with the passed owner address.

Fetch Groups Code Examples

updateGroup(groupName, groupId, seed)

Allows the owner to update the group name.

Update Group Code Examples

disableGroup(groupId, seed)

Disables a group.

Disable Group Code Examples

assignRoleToGroup(groupId, roleId, seed)

Assigns a role to a group.

Assign Role to Group Code Examples

fetchGroupRoles(owner, groupId, wssBaseUrl)

Fetches the roles assigned to a group.

Fetch Group Roles Code Examples

unassignRoleToGroup(groupId, roleId, seed)

Unassigns a role from a group.

Unassign Role to Group Code Examples

assignUserToGroup(userId, groupId, seed)

Assigns a user to a group.

Assign User to Group Code Examples

fetchUserGroups(owner, userId, wssBaseUrl)

Fetches the groups a user belongs to.

Fetch User Groups Code Examples

unassignUserToGroup(userId, groupId, seed)

Unassigns a user from a group.

Unassign User to Group Code Examples