Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Organization Objects

Search User Grants

Deprecated: List authorizations and pass the user ID filter to search for a users grants on owned or granted projects.

Returns a list of user grants that match the search queries. User grants/role assignments are the roles users have for a specific project and organization.

Note: User grant refers to role assignments.

POST
/management/v1/users/grants/_search

Request Body

application/json
  1. body
query?

list limitations and ordering

queries?array<||||||||||||||>

criteria the client is looking for

Response Body

Success

application/json
  1. response
details?
result?array<>
Example Request
curl -X POST 'https://example.com/management/v1/users/grants/_search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "details": {    "totalResult": 0,    "processedSequence": 0,    "viewTimestamp": "2023-01-15T01:30:15.01Z"  },  "result": [    {      "id": "string",      "details": {        "sequence": 0,        "creationDate": "2023-01-15T01:30:15.01Z",        "changeDate": "2023-01-15T01:30:15.01Z",        "resourceOwner": "string"      },      "roleKeys": [        "string"      ],      "state": "USER_GRANT_STATE_UNSPECIFIED",      "userId": "string",      "userName": "string",      "firstName": "string",      "lastName": "string",      "email": "string",      "displayName": "string",      "orgId": "string",      "orgName": "string",      "orgDomain": "string",      "projectId": "string",      "projectName": "string",      "projectGrantId": "string",      "avatarUrl": "string",      "preferredLoginName": "string",      "userType": "TYPE_UNSPECIFIED",      "grantedOrgId": "string",      "grantedOrgName": "string",      "grantedOrgDomain": "string"    }  ]}

Was this page helpful?