Request role
request_roleRequest a role for yourself or a direct report by submitting an assignment request; midPoint policy decides whether to open an approval case or execute immediately.
Instructions
Request a role for yourself or a report. Submits an assignment-add delta; midPoint policy decides whether that opens an approval case or executes immediately — so by default this refuses roles that midPoint's catalog does not flag requestable (see list_requestable_roles), because for those it would grant rather than request. Use assign_role for a deliberate grant. The requester is always the authenticated 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. Respects the write gate. When you write to a person, name people, roles and requests by their display names rather than OIDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | the request's fields: values keyed by the names in list_requestable_roles form.items (its Request form fields); a list for a multiple field, an option value for a choice. midPoint decides on submit who must fill what | |
| roleOid | Yes | OID of the role to request | |
| userOid | No | OID of the user the role is for; defaults to the authenticated user (self-service) | |
| validTo | No | end in RFC 3339 with offset; after the start and in the future | |
| relation | No | the relation to request: default (member, when left out), or one list_requestable_roles offers for this role, such as approver or owner | |
| roleName | Yes | the role's midPoint name (its unique name attribute, not the display name); must match roleOid | |
| userName | No | the user's midPoint name (their login, not the full name); required with userOid and must match it | |
| validFrom | No | inclusive start in RFC 3339 with offset; no earlier than today |
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 | ||
| request | Yes | ||
| summary | Yes | ||
| endpoint | Yes |