Skip to main content

Permission

📄️createPermission

createPermission function allows to create new permissions within the RBAC (Role-Based Access Control) system. This function returns JSON object with permission ID.

📄️assignPermissionToRole

assignPermissionToRole function assigns a permission to a role within the RBAC (Role-Based Access Control) system on the PEAQ network. This function returns permission and role IDs.

📄️disablePermission

disablePermission function allows disabling permission within the RBAC (Role-Based Access Control) system. This function returns a JSON object with permission ID.

📄️fetchPermission

fetchPermission function fetches permission information from the Role-Based Access Control (RBAC) system on the PEAQ network. This function returns a JSON object with permission info.

📄️fetchPermissions

fetchPermissions function fetches all permission information from the Role-Based Access Control (RBAC) system on the PEAQ network. This function returns a JSON object with permissions info.

📄️fetchUserPermissions

fetchUserPermissions function fetches the permissions associated with a user from the Role-Based Access Control (RBAC) system. This function returns a JSON object with permissions info.

📄️unassignPermissionToRole

unassignPermissionToRole function is used to unassign a permission from a role within the Role-Based Access Control (RBAC) system. This function returns JSON object with role and permission IDs.

📄️updatePermission

updatePermission function is used to modify an existing permission within the RBAC (Role-Based Access Control) system on the PEAQ network. This function returns the JSON object with permission ID and a new name.