Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Authenticated User

List My Authorizations / Role Assignments

Deprecated: List authorizations and pass the user ID filter with your users ID to search for your authorizations on granted and owned projects.

Returns a list of the authorizations/role assignments the authenticated user has. Role assignments consist of an organization, a project and 1-n roles.

Note: Authorization in this context refers to role assignments, not to OAuth authorization.

POST
/auth/v1/usergrants/me/_search

Request Body

application/json
  1. body
query?

list limitations and ordering

Response Body

Success

application/json
  1. response
details?
result?array<>
Example Request
curl -X POST 'https://example.com/auth/v1/usergrants/me/_search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "details": {    "totalResult": 0,    "processedSequence": 0,    "viewTimestamp": "2023-01-15T01:30:15.01Z"  },  "result": [    {      "orgId": "string",      "projectId": "string",      "userId": "string",      "roles": [        "string"      ],      "orgName": "string",      "grantId": "string",      "details": {        "sequence": 0,        "creationDate": "2023-01-15T01:30:15.01Z",        "changeDate": "2023-01-15T01:30:15.01Z",        "resourceOwner": "string"      },      "orgDomain": "string",      "projectName": "string",      "projectGrantId": "string",      "roleKeys": [        "string"      ],      "userType": "TYPE_UNSPECIFIED",      "state": "USER_GRANT_STATE_UNSPECIFIED"    }  ]}

Was this page helpful?