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.
application/json- body
query?list limitations and ordering
queries?array<||||||||||||||>criteria the client is looking for
Success
application/json- response
details?result?array<>curl -X POST 'https://example.com/management/v1/users/grants/_search' \ -H 'Content-Type: application/json' \ -d '{}'{ "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?
Search Project Roles
Search Project Roles: Deprecated: use [project v2 service ListProjectRoles](/reference/api/project/zitadel.project.v2.ProjectService.ListProjectRoles) instead. Returns all roles of a project matching the search query.
Search User Metadata
Search User Metadata: Deprecated: use [ListUserMetadata](/reference/api/user/zitadel.user.v2.UserService.ListUserMetadata) instead. Get the metadata of a user filtered by your query.
