Skip to navigation

Create a grant for a user

View as Markdown

Create an identity grant directly without going through the IGA workflow. Requires user_id and entitlement_id. Optionally specify policy, granted_by, and granted_at. The grant method is automatically derived from the entitlement’s provisioning config.

Authentication

X-Api-Keystring
API Key authentication via header

Headers

X-Workspace-IdstringOptional

Request

Request body for creating a grant via the public API
user_idlongRequired
The ID of the user who will receive the grant
entitlement_idlongRequired
The ID of the entitlement to grant
policy_idlongOptional
Optional policy ID to associate with the grant
policy_keystringOptional

Optional policy key (alternative to policy_id)

granted_bylongOptional
Optional user ID of who authorized this grant. Defaults to the API key owner.
granted_atdatetimeOptional
Optional timestamp of when the grant was authorized. Defaults to current time.

Response

Successful response