Manage customer accounts - Create Directory Role
POST https://api.partnercenter.microsoft.com/v1/customers/{customer_id}/directoryroles/{role_id}/usermembers
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
Ügyfélbérlő azonosítója. |
role_id
|
path | True |
string |
A címtár-szerepkör azonosítója. |
Kérelem fejléce
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Kötelező | Típus | Description |
---|---|---|---|
Authorization | True |
string |
Engedélyezési tulajdonos jogkivonata |
ms-correlationid |
string |
A kérések belső nyomon követésére szolgál. Ha nincs megadva ms-correlationid, a kiszolgáló minden kéréshez létrehoz egy újat |
|
ms-cv |
string |
A kérések belső nyomon követésére szolgál. Ha nincs megadva ms-cv, a kiszolgáló minden kéréshez létrehoz egy újat |
|
ms-requestid |
string |
A kérések idempotensségéhez használatos. Ha nincs megadva ms-requestid, a kiszolgáló minden kéréshez létrehoz egy újat |
Kérelem törzse
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Típus | Description |
---|---|---|
accountId |
string |
|
displayName |
string |
|
id |
string |
|
roleId |
string |
|
userPrincipalName |
string |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
object |
OK Media Types: "application/json", "text/json", "application/xml", "text/xml" |
201 Created |
Microsoft. |
A kérés sikeres volt. A válasz törzse tartalmazza az újonnan létrehozott felhasználótagot. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definíciók
Name | Description |
---|---|
Microsoft. |
|
Microsoft. |
Microsoft.Partner.Core.Collections.ResourceAttributes
Name | Típus | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember
Name | Típus | Description |
---|---|---|
accountId |
string |
|
attributes | ||
displayName |
string |
|
id |
string |
|
roleId |
string |
|
userPrincipalName |
string |