List My Authorizations/Grants
POSThttps://$CUSTOM-DOMAIN/auth/v1/usergrants/me/_search
Returns a list of the authorizations/user grants the authenticated user has. User grants consist of an organization, a project and 1-n roles.
Request​
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
query
object
Body
required
query
object
Body
required
query
object
Responses​
- 200
- default
A successful response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
result
object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"viewTimestamp": "2025-03-25T16:32:58.427Z"
},
"result": [
{
"orgId": "69629026806489455",
"projectId": "98729028932384528",
"userId": "28746028909593987",
"roles": [
"RoleKey1",
"RoleKey2"
],
"orgName": "ZITADEL",
"grantId": "",
"details": {
"sequence": "2",
"creationDate": "2025-03-25T16:32:58.427Z",
"changeDate": "2025-03-25T16:32:58.427Z",
"resourceOwner": "69629023906488334"
},
"orgDomain": "zitadel.cloud",
"projectName": "ZITADEL",
"projectGrantId": "28746028909586246",
"roleKeys": [
"RoleKey1",
"RoleKey2"
],
"userType": "TYPE_UNSPECIFIED",
"state": "USER_GRANT_STATE_UNSPECIFIED"
}
]
}
- Schema
- Example (from schema)
Schema
details
object
result
object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"viewTimestamp": "2025-03-25T16:32:58.428Z"
},
"result": [
{
"orgId": "69629026806489455",
"projectId": "98729028932384528",
"userId": "28746028909593987",
"roles": [
"RoleKey1",
"RoleKey2"
],
"orgName": "ZITADEL",
"grantId": "",
"details": {
"sequence": "2",
"creationDate": "2025-03-25T16:32:58.428Z",
"changeDate": "2025-03-25T16:32:58.428Z",
"resourceOwner": "69629023906488334"
},
"orgDomain": "zitadel.cloud",
"projectName": "ZITADEL",
"projectGrantId": "28746028909586246",
"roleKeys": [
"RoleKey1",
"RoleKey2"
],
"userType": "TYPE_UNSPECIFIED",
"state": "USER_GRANT_STATE_UNSPECIFIED"
}
]
}
- Schema
- Example (from schema)
Schema
details
object
result
object[]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"viewTimestamp": "2025-03-25T16:32:58.428Z"
},
"result": [
{
"orgId": "69629026806489455",
"projectId": "98729028932384528",
"userId": "28746028909593987",
"roles": [
"RoleKey1",
"RoleKey2"
],
"orgName": "ZITADEL",
"grantId": "",
"details": {
"sequence": "2",
"creationDate": "2025-03-25T16:32:58.429Z",
"changeDate": "2025-03-25T16:32:58.429Z",
"resourceOwner": "69629023906488334"
},
"orgDomain": "zitadel.cloud",
"projectName": "ZITADEL",
"projectGrantId": "28746028909586246",
"roleKeys": [
"RoleKey1",
"RoleKey2"
],
"userType": "TYPE_UNSPECIFIED",
"state": "USER_GRANT_STATE_UNSPECIFIED"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://$CUSTOM-DOMAIN/auth/v1/usergrants/me/_search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"query": {
"offset": "0",
"limit": 100,
"asc": true
}
}'
ResponseClear