Role management
Last updated
Last updated
it is necessary to add to the different users roles and to give them an available permissions.
Working with roles and permissions via DCM API you have the following opportunities:
Good to know: You can't delete the role "Administrator".
To get the list of all available permissions for the roles you should use this endpoint.
create keto permissions
if group_lang_key not found in translation, use it as default
if name_lang_key not found in translation, use it as default
key for translation table, where find name of group for permissions
sorting order for group among all groups
if empty its generate random guid
the kind of keto looking for permissions
name of keto permission, for now it POST, GET, PUT etc; Its may be anything in future
the name of scope for permission, for now it endpoint group, ex: accounts, customers, payments; No longer than 64 characters
key for translation table, where find name of permission
sorting order for permission under the group
Get permissions
permissions GUIDs (uuid)
keto kinds (string)
keto permissions (string)
scope names (string)
Offset
Limit
Ordering
Add role permission
Counterparty GUID
permission_guid that you get as a response to endpoint Permissions titles/Get permissions
role name
Remove role permission
Counterparty GUID
guid of permission that you need to remove from an employee
role's name