manage_user_roles
Preview, assign, or remove up to 20 direct user security roles in Dynamics 365, with dry-run checks, business unit resolution, and post-dispatch verification of each membership.
Instructions
Preview then assign or remove up to 20 direct user security roles. Resolves native relationship and business units, requires unprotected-write acknowledgement, and verifies each membership after dispatch. No automatic retries; effective privileges are not inferred.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>",
"role_ids": "<role_ids>",
"action": "<action>"
},
"name": "manage_user_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| dry_run | No | ||
| user_id | Yes | ||
| role_ids | Yes | ||
| expected_hash | No | ||
| environment_profile | No | Optional named environment profile for this call; omit to use the configured default. | |
| allow_unprotected_write | No | ||
| allow_cross_business_unit | No |