Get Organization Roles By Organization Id Using GET
Get list of organization roles. Expand parameter is supported. If it is true, organization roles will be returned in the response.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Member | ✔️ | ✔️ |
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
Unique identifier (GUID) of the organization.
Role name (or comma separated list of role names
Indicates if response should be expanded, value is ignored - only the existence of parameter is checked.
OK
{
"refLinks": [
"string"
],
"orgRolesData": [
{
"displayName": "string",
"name": "string",
"expiresAt": 0,
"organizationLink": "string",
"visible": false,
"lastUpdatedBy": "string",
"lastUpdatedDate": "string",
"createdDate": "string",
"createdBy": "string",
"resource": "string"
}
]
}
The list of links of references.
The details of the organization roles.
The user is not authorized to use the API
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user is forbidden to use the API
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
Organization with this identifier is not found.
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user has sent too many requests
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
An unexpected error has occurred while processing the request
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
curl -H 'Authorization: <value>' https://{api_host}/csp/gateway/am/api/orgs/{orgId}/roles