cURL
curl --request GET \
--url https://cockroachlabs.cloud/api/v1/roles/{user_id} \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'{
"roles": [
{
"name": "ORG_ROLE_DEVELOPER",
"resource": {
"type": "ORGANIZATION",
"id": "<string>"
}
}
]
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Gets All Role Grants for the specified user
GET
/
api
/
v1
/
roles
/
{user_id}
cURL
curl --request GET \
--url https://cockroachlabs.cloud/api/v1/roles/{user_id} \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'{
"roles": [
{
"name": "ORG_ROLE_DEVELOPER",
"resource": {
"type": "ORGANIZATION",
"id": "<string>"
}
}
]
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}This endpoint is in Preview and subject to change. Refer to the API support policy for more details.

