Manage customer accounts - Get Directory Role by RoleId

GET https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/directoryroles/{role_id}/usermembers
GET https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/directoryroles/{role_id}/usermembers?size={size}&seekOperation={seekOperation}

URI 参数

名称 必需 类型 说明
customer_id
path True

string

客户租户 ID。

role_id
path True

string

角色 ID。

seekOperation
query

string

要对目录角色的用户成员执行的查找操作。 Microsoft.Partner.Providers.All.Contracts.Query.SeekOperation。

size
query

integer

int32

要返回的最大用户成员数,值不应超过 500,不应小于 1。

请求头

名称 必需 类型 说明
Authorization True

string

授权持有者令牌

ms-correlationid

string

用于在内部跟踪请求。 如果未提供 ms-correlationid,则服务器将为每个请求生成一个新请求

ms-cv

string

用于在内部跟踪请求。 如果未提供 ms-cv,服务器将为每个请求生成一个新请求

ms-requestid

string

用于请求的幂等性。 如果未提供 ms-requestid,服务器将为每个请求生成一个新请求

响应

名称 类型 说明
200 OK

Microsoft.Partner.Core.Collections.PagedResourceCollection[Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember]

请求成功。 响应正文包含所有客户支持的客户目录角色的列表。

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

定义

名称 说明
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Core.Collections.PagedResourceCollection[Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember]
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Core.Collections.ResourceLinks
Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember
System.Collections.Generic.KeyValuePair[System.String,System.String]
名称 类型 说明
body

string

headers

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

method

string

uri

string

Microsoft.Partner.Core.Collections.PagedResourceCollection[Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember]

名称 类型 说明
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

continuationToken

string

items

Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember[]

links

Microsoft.Partner.Core.Collections.ResourceLinks

totalCount

integer

Microsoft.Partner.Core.Collections.ResourceAttributes

名称 类型 说明
etag

string

objectType

string

名称 类型 说明
next

Microsoft.Partner.Core.Collections.Link

previous

Microsoft.Partner.Core.Collections.Link

self

Microsoft.Partner.Core.Collections.Link

Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember

名称 类型 说明
accountId

string

attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

displayName

string

id

string

roleId

string

userPrincipalName

string

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

名称 类型 说明
key

string

value

string