Skip to main content

Group

📄️addGroup

The addGroup function is used to create a new group within the RBAC (Role-Based Access Control) system. This function returns a JSON object with groupID.

📄️assignUserToGroup

assignUserToGroup function assigns a user to a group within the RBAC (Role-Based Access Control) system. This function returns a JSON object with user and group IDs.

📄️disableGroup

The disableGroup function allows to disable a group within the RBAC (Role-Based Access Control) system. This function returns a JSON object.

📄️fetchGroup

fetchGroup function fetches group information from the RBAC system based on the provided group ID and owner's address.

📄️fetchGroups

fetchGroups function returns an array with details about groups associated with the specified owner.

📄️fetchGroupRoles

fetchGroupRoles function returns an array with details about roles associated with the specified group.

📄️fetchGroupPermissions

fetchGroupPermissions function retrieves an array of permission details associated with a specific group from the RBAC system. This function returns the array with information about permissions.

📄️fetchUserGroups

fetchUserGroups function is used to retrieve user groups that are linked to a specific owner and user within the RBAC (Role-Based Access Control) system. The function returns an array of objects, where each object represents a user group and contains information about the user and group associations.

📄️unassignUserFromGroup

unassignUserFromGroup function unassigns a user from a group within the RBAC (Role-Based Access Control) system. It takes the userId and groupId as required parameters, which are the IDs of the user and group, respectively. The optional address parameter can be used to specify the address associated with the operation, and the optional seed parameter is used for the mnemonic seed if provided. The function returns a JSON object containing the result of the unassignment operation, with a message property indicating the outcome.

📄️updateGroup

updateGroup function is used to update the properties of an existing group in the RBAC system. This function returns a JSON object with a group ID and a new name.