[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator

Get Org Roles

Description

Lists the assigned organization roles of a user in an organization.

Request

Request

URL

URL


get
https://{api_host}/v1/users/{userId}/orgs/{orgId}/org-roles
Copy

Path Parameters

Path Parameters

string
orgId Required

Unique identifier (GUID) of the organization.


string
userId Required

The userId or user account identifier.


Query Parameters

Query Parameters

string
context Optional

context can be OPERATOR, PROVIDER or TENANT.


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns OrgRoles of type application/json
{
    "orgRoles": [
        {
            "displayName": "...",
            "id": "...",
            "memberType": "DIRECT",
            "name": "...",
            "orgId": "..."
        },
        {
            "displayName": "...",
            "id": "...",
            "memberType": "DIRECT",
            "name": "...",
            "orgId": "..."
        }
    ]
}
array of Role
orgRoles Optional

The list of organization role objects.

Errors

Errors

401

Unauthorized - The user is not authorized to use the API


500

Internal Server Error - An unexpected error has occurred while processing the request

Code Samples

Code Samples

cURL Command

curl https://{api_host}/v1/users/{userId}/orgs/{orgId}/org-roles


Feedback

Was this page helpful?