ListMyUserGrants
List My Authorizations / User Grants
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/user grants the authenticated user has. User grants consist of an organization, a project and 1-n roles.
Request Body
application/json
query?
list limitations and ordering
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://loading/usergrants/me/_search" \ -H "Content-Type: application/json" \ -d '{}'{
"details": {
"totalResult": 0,
"processedSequence": 0,
"viewTimestamp": "1s"
},
"result": [
{
"orgId": "string",
"projectId": "string",
"userId": "string",
"roles": [
"string"
],
"orgName": "string",
"grantId": "string",
"details": {
"sequence": 0,
"creationDate": "1s",
"changeDate": "1s",
"resourceOwner": "string"
},
"orgDomain": "string",
"projectName": "string",
"projectGrantId": "string",
"roleKeys": [
"string"
],
"userType": "TYPE_UNSPECIFIED",
"state": "USER_GRANT_STATE_UNSPECIFIED"
}
]
}{
"code": "not_found",
"message": "string",
"detail": {
"type": "string",
"value": "string",
"debug": {}
}
}Was this page helpful?