次の方法で共有


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

OK

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