add_privileges_to_role
Grant specific permissions to security roles by adding privileges with defined access levels for operations like create, read, write, and delete on entities or system functions.
Instructions
Adds specific privileges with defined access levels to a security role. Use this to grant permissions for specific operations (create, read, write, delete, etc.) on entities or system functions. Each privilege can have different access levels (Basic, Local, Deep, Global).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
privileges | Yes | Array of privileges to add to the role | |
roleId | Yes | ID of the role to add privileges to |
Input Schema (JSON Schema)
{
"properties": {
"privileges": {
"description": "Array of privileges to add to the role",
"items": {
"additionalProperties": false,
"properties": {
"depth": {
"description": "Access level for the privilege",
"enum": [
"Basic",
"Local",
"Deep",
"Global"
],
"type": "string"
},
"privilegeId": {
"description": "ID of the privilege to add",
"type": "string"
}
},
"required": [
"privilegeId",
"depth"
],
"type": "object"
},
"type": "array"
},
"roleId": {
"description": "ID of the role to add privileges to",
"type": "string"
}
},
"required": [
"roleId",
"privileges"
],
"type": "object"
}