Skip to main content

createGroup(groupName, groupId, seed)

Used to create a new group within the RBAC (Role-Based Access Control) system.

Create Group Code Examples

For the EVM tx it returns in a different form than what was used throughout the sdk. The purpose of this is to show the group-id that was autogenerated if it was not manually set. That way you are able to take note of the group-id for that group-name set.

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 within a permission management system.

Disable Group Code Examples

assignRoleToGroup(groupId, roleId, seed)

This function allows you to assign a specific role to a group within a permission management system.

Assign Role to Group Code Examples

fetchGroupRoles(owner, groupId, wssBaseUrl)

Designed to retrieve roles associated with a specific group from the network’s RBAC (Role-Based Access Control) system.

Fetch Group Roles Code Examples

unassignRoleToGroup(groupId, roleId, seed)

This function allows you to unassign a specific role from a group in a permission management system.

Unassign Role to Group Code Examples

assignUserToGroup(userId, groupId, address, seed)

This function allows you to assign a user to a group within the RBAC (Role-Based Access Control) system.

Assign User to Group Code Examples

fetchUserGroups(owner, userId, wssBaseUrl)

Designed to retrieve groups associated with a specific user from the network’s RBAC (Role-Based Access Control) system.

Fetch User Groups Code Examples

unassignUserToGroup(userId, groupId, address, seed)

This function allows you to unassign a specific user from a group in a permission management system.

Unassign User to Group Code Examples