List Authorizations
ListAuthorizations returns all authorizations matching the request and necessary permissions.
Note: Authorization in this context refers to role assignments, not to OAuth authorization.
Required permissions:
- "user.grant.read"
- no permissions required for listing own authorizations
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
Paginate through the results using a limit, offset and sorting.
The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent.
"AUTHORIZATION_FIELD_NAME_UNSPECIFIED" | "AUTHORIZATION_FIELD_NAME_CREATED_DATE" | "AUTHORIZATION_FIELD_NAME_CHANGED_DATE" | "AUTHORIZATION_FIELD_NAME_ID" | "AUTHORIZATION_FIELD_NAME_USER_ID" | "AUTHORIZATION_FIELD_NAME_PROJECT_ID" | "AUTHORIZATION_FIELD_NAME_ORGANIZATION_ID" | "AUTHORIZATION_FIELD_NAME_USER_ORGANIZATION_ID"Define the criteria to query for.
Response Body
application/json
application/json
curl -X POST "https://loading/zitadel.authorization.v2.AuthorizationService/ListAuthorizations" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"pagination": {
"totalResult": 0,
"appliedLimit": 0
},
"authorizations": [
{
"id": "string",
"creationDate": "2023-01-15T01:30:15.01Z",
"changeDate": "2023-01-15T01:30:15.01Z",
"project": {
"id": "string",
"name": "string",
"organizationId": "string"
},
"organization": {
"id": "string",
"name": "string"
},
"user": {
"id": "string",
"preferredLoginName": "string",
"displayName": "string",
"avatarUrl": "string",
"organizationId": "string"
},
"state": "STATE_UNSPECIFIED",
"roles": [
{
"key": "string",
"displayName": "string",
"group": "string"
}
]
}
]
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}Was this page helpful?
Delete Authorization
Explore the Delete Authorization operation in the ZITADEL API. Learn about request parameters, response schemas, and integration details for this endpoint.
Update Authorization
Explore the Update Authorization operation in the ZITADEL API. Learn about request parameters, response schemas, and integration details for this endpoint.