Get Entitlements List

get

/iam/governance/selfservice/api/v1/entitlements

Returns all the entitlements available in Oracle Identity Manager. The entitlements that are hidden in the catalog are also returned. The entitlements can be filtered.

Request

Supported Media Types
Query Parameters
  • Attributes to be returned in the result. Comma-separated attributes are accepted. Sample value for supported attributes is "entitlementKey,entitlementValue,entitlementDisplayName"
  • The filter query parameter is used for filtering the entitlements.
  • The userId query parameter is used for filtering the entitlements for a user.
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : AccountsObjectGetEntitlements
Type: object
Show Source
Nested Schema : entitlements
Type: array
Show Source
Nested Schema : EntitlementData
Type: object
Show Source
Nested Schema : AppInstanceReference
Type: object
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source

401 Response

Unauthorized

404 Response

Resource not found

500 Response

Internal Server Error
Back to Top

Examples

This example demonstrates the ability to retrieve all the entitlements for a specific user using query parameter userId.

/iam/governance/selfservice/api/v1/entitlements?userId={userKey}

The information shown here is against a pseudo system and serves as a prototype.

cURL Example

curl  -H "Content-Type: application/json"  -X GET  -u username:password  
https://pseudo.com/iam/governance/selfservice/api/v1/entitlements?userId=82

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
    "links": [
        {
            "rel": "self",
            "href": "http://pseudo.com/iam/governance/selfservice/api/v1/entitlements?
userId=82&offset=1&limit=10"
        },
        {
            "rel": "first",
            "href": "http://pseudo.com/iam/governance/selfservice/api/v1/entitlements?
userId=82&offset=1&limit=10"
        }
    ],
    "count": 2,
    "hasMore": false,
    "totalResult": -1,
    "entitlements": [
        {
            "links": [
                {
                    "rel": "self",
                    "href": "http://pseudo.com/iam/governance/selfservice/api/v1/entitlements/265"
                }
            ],
            "id": "265",
            "name": "CN=ADGroup_AAT,OU=MainOrg_HNK,OU=Vision,DC=adlrg12c,DC=us,DC=pseudo,DC=com",
            "description": ""
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "http://pseudo.com/iam/governance/selfservice/api/v1/entitlements/624"
                }
            ],
            "id": "624",
            "name": "CN=ADGroup_AGI,OU=MainOrg_WMM,OU=Vision,DC=adlrg12c,DC=us,DC=pseudo,DC=com",
            "description": ""
        }
    ]
}
Back to Top