Search for all indirect grants of a specific app to any user
GET {{stripeUrl}}/admin/v1/Grants?filter=app.value eq "{{appid}}" and grantee.type eq "User" and grantMechanism eq "GROUP_MEMBERSHIP"
There are two ways to query Grants to Users:
Query the /Grants endpoint directly with a filter such as:
filter=grantee.value eq "<idOfUser>", or
filter=grantee[value eq "<idOfUser>" and type eq "User"] (if you distrust the uniqueness of IDs)
For convenience, each Oracle Identity Cloud Service User has a grants attribute:
UserManager computes the values of this attribute for a particular User by querying Grants to that User.
The grants attribute has the key information about each Grant to that User, but not all of the information.
NOTE: If you want to query only direct Grants to Users, then your search should filter out any Grant with grantMechanism of GROUP_MEMBERSHIP
filter=grantee.value eq "<idOfUser>" and grantMechanism ne "GROUP_MEMBERSHIP", or
filter=grantee[value eq "<idOfUser>" and type eq "User"] and grantMechanism ne "GROUP_MEMBERSHIP"
See https://docs.oracle.com/en/cloud/paas/identity-cloud/rest-api/appmgmtrelationships.html for more information on understanding application management relationships between Apps, AppRoles, Users, and Groups.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
filter | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Date | string |