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

Get Service Roles

Description

Lists all service roles of the logged user account within a specified organization.

Request

Request

URL

URL


get
https://{api_host}/v1/loggedinuser/orgs/{orgId}/service-roles
Copy

Path Parameters

Path Parameters

string
orgId Required

Unique identifier (GUID) of the organization.


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns array of ServiceRoles of type application/json
[
	{
		"resourceTypes": [
			"...",
			"..."
		],
		"resources": [
			{
				"id": "...",
				"name": "..."
			},
			{
				"id": "...",
				"name": "..."
			}
		],
		"roles": [
			{
				"associatedResources": [
					"...",
					"..."
				],
				"defaultRole": true,
				"displayName": "...",
				"enabled": true,
				"hidden": true,
				"memberType": "GROUP",
				"mspDefaultRole": true,
				"mspDefaultRoleOfProviderAtTenant": true,
				"name": "...",
				"resource": "...",
				"roleId": "...",
				"status": "..."
			},
			{
				"associatedResources": [
					"...",
					"..."
				],
				"defaultRole": true,
				"displayName": "...",
				"enabled": true,
				"hidden": true,
				"memberType": "DIRECT",
				"mspDefaultRole": true,
				"mspDefaultRoleOfProviderAtTenant": true,
				"name": "...",
				"resource": "...",
				"roleId": "...",
				"status": "..."
			}
		],
		"serviceDisplayName": "...",
		"serviceId": "..."
	}
]
array of string
resourceTypes Optional

The list of resource types.


array of Resource
resources Optional

The list of resources.


array of ServiceRole
roles Optional

The list of role objects.


string
serviceDisplayName Optional

The display name of the service.


string
serviceId Optional

The service definition id (without “external” prefix.)

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl https://{api_host}/v1/loggedinuser/orgs/{orgId}/service-roles


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

Was this page helpful?