Assign role
assign_roleAssigns a role to a user only when the supplied OIDs match exact midPoint names; returns a dry-run preview if writes are disabled.
Instructions
Assign a role to a user. 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 | |
| dryRun | Yes | ||
| method | Yes | ||
| result | No | ||
| applied | Yes | ||
| summary | Yes | ||
| endpoint | Yes |