Get Custom Roles Using GET
Get all custom roles in an organization.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Member | ✔️ | ✔️ |
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
orgId
Locale for which the role description should be translated
Success
{
"results": [
{
"permissions": [
"string"
],
"name": "string",
"description": "string",
"createdBy": "string",
"displayName": "string",
"lastModifiedBy": "string"
}
]
}
The results of the operation
Invalid request body
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
Unauthorized
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
Forbidden
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
Not Found
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
The user has sent too many requests
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
An unexpected error has occurred while processing the request
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
curl -H 'Authorization: <value>' https://{api_host}/csp/gateway/iam-roles-mgmt/api/orgs/{orgId}/custom-roles