Compartilhar via


Manage customer accounts - Get Directory Roles by CustomerId and UserId

GET https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/users/{user_id}/directoryroles

Parâmetros de URI

Nome Em Obrigatório Tipo Description
customer_id
path True

string

A ID do locatário do cliente.

user_id
path True

string

A ID do objeto do usuário.

Cabeçalho da solicitação

Nome Obrigatório Tipo Description
Authorization True

string

Token de portador de autorização

ms-correlationid

string

Usado para acompanhar solicitações internamente. Se um ms-correlationid não for fornecido, o servidor gerará um novo para cada solicitação

ms-cv

string

Usado para acompanhar solicitações internamente. Se um ms-cv não for fornecido, o servidor gerará um novo para cada solicitação

ms-requestid

string

Usado para idempotency de solicitações. Se uma ms-requestid não for fornecida, o servidor gerará uma nova para cada solicitação

Respostas

Nome Tipo Description
200 OK

Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Providers.Contracts.V1.DirectoryRole]

A solicitação foi bem-sucedida. O corpo da resposta contém as funções de diretório do usuário solicitadas.

Media Types: "application/json", "text/json"

Definições

Nome Description
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Providers.Contracts.V1.DirectoryRole]
Microsoft.Partner.Core.Collections.ResourceLinks
Microsoft.Partner.Providers.Contracts.V1.DirectoryRole
System.Collections.Generic.KeyValuePair[System.String,System.String]
Nome Tipo Description
body

string

headers

System.Collections.Generic.KeyValuePair[System.String,System.String][]

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

Nome Tipo Description
etag

string

objectType

string

Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Providers.Contracts.V1.DirectoryRole]

Nome Tipo Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

items

Microsoft.Partner.Providers.Contracts.V1.DirectoryRole[]

links

Microsoft.Partner.Core.Collections.ResourceLinks

totalCount

integer

Nome Tipo Description
next

Microsoft.Partner.Core.Collections.Link

previous

Microsoft.Partner.Core.Collections.Link

self

Microsoft.Partner.Core.Collections.Link

Microsoft.Partner.Providers.Contracts.V1.DirectoryRole

Nome Tipo Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

id

string

name

string

System.Collections.Generic.KeyValuePair[System.String,System.String]

Nome Tipo Description
key

string

value

string