- Retrieve an entitlement history
- okta.governance.entitlements.read
- APP_ADMIN
Retrieves an entitlement history log for a specific principal and resource.
Specify the required principal and resource references in the filter query parameter. You can optionally specify a time range for the returned history log.
Required: You must specify both principal and resource references with one of these sets of properties:
principal.externalId,principal.type,resource.externalId, andresource.typeprincipalOrnandresourceOrnprincipalIdandresourceId
Optional: You can optionally filter by a date range with the following properties:
startDate: Start of the date range (inclusive) in ISO 8601 UTC format. If omitted, data is retrieved from the earliest available records.endDate: End of the date range (inclusive) in ISO 8601 UTC format. If omitted, data is retrieved up to the current time.
Note: Query parameter percent encoding is required. See Percent-encoding.
Specifies the pagination cursor for the next page of results. Treat this as an opaque value obtained through the standard link headers. See pagination.
curl -i -X GET \
'https://okta-subdomain.pixtulate.com/governance/api/v1/principal-entitlements/history?filter=resource.externalId%20eq%20%220oafxqCAJWWGELFTYASJ%22%20AND%20resource.type%20eq%20%22APPLICATION%22%20AND%20principal.externalId%20eq%20%2200ub0oNGTSWTBKOLGLNR%22%20AND%20principal.type%20eq%20%22OKTA_USER%22&limit=20&after=00u68w6vzKLultXS97g6&include=counts'A successful principal entitlements history response
The Okta resource in ORN format
See the ORN format for supported resources.
The Okta user in ORN format
Principal entitlements history list
Link relations available using the JSON Hypertext Application Language
{ "resourceOrn": "orn:okta:idp:00o1kq5LLpmbGnOtz0g4:apps:oidc_client:0oacvetsS5uY0gCzk0g4", "resource": { "externalId": "0oacvetsS5uY0gCzk0g4", "type": "APPLICATION" }, "principalOrn": "orn:okta:directory:00o1kq5LLpmbGnOtz0g4:users:00u1rvrLNphg0QAmP0g4", "principal": { "externalId": "00u1rvrLNphg0QAmP0g4", "type": "OKTA_USER" }, "entitlementHistory": [ { … }, { … }, { … } ], "_links": { "self": { … }, "next": { … } }, "metadata": { "total": 4 } }