Manage customer accounts - Create Directory Role

POST https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/directoryroles/{role_id}/usermembers

URI 参数

名称 必需 类型 说明
customer_id
path True

string

客户租户 ID。

role_id
path True

string

目录角色 ID。

请求头

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

名称 必需 类型 说明
Authorization True

string

授权持有者令牌

ms-correlationid

string

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

ms-cv

string

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

ms-requestid

string

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

请求正文

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

名称 类型 说明
accountId

string

displayName

string

id

string

roleId

string

userPrincipalName

string

响应

名称 类型 说明
200 OK

object

还行

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

201 Created

Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember

请求成功。 响应正文将包含新创建的用户成员。

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

定义

名称 说明
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember

Microsoft.Partner.Core.Collections.ResourceAttributes

名称 类型 说明
etag

string

objectType

string

Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember

名称 类型 说明
accountId

string

attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

displayName

string

id

string

roleId

string

userPrincipalName

string