Unassign role
unassign_roleRemove a user's role assignment by supplying matching user and role OIDs and names; returns a dry-run preview unless write access is enabled.
Instructions
Remove a user's assignment to a role. userName and roleName are the midPoint names (the unique name attribute, such as a login, not display names) of the objects the OIDs point to, as list and get results give them; the call is refused when they don't match, so the person confirming it reads the right names. Requires the write gate; otherwise a dry-run preview. When you write to a person, name people, roles and requests by their display names rather than OIDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roleOid | Yes | OID of the role | |
| userOid | Yes | OID of the user | |
| roleName | Yes | the role's midPoint name (its unique name attribute, not the display name); must match roleOid | |
| userName | Yes | the user's midPoint name (their login, not the full name); must match userOid |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | the JSON body of the midPoint REST request, when it has one | |
| tool | Yes | the tool that produced this result | |
| acting | Yes | who midPoint executed this call as | |
| dryRun | Yes | ||
| method | Yes | ||
| result | No | ||
| server | Yes | write gate, features and versions of this server | |
| applied | Yes | ||
| summary | Yes | ||
| endpoint | Yes | ||
| revocation | Yes |