Megosztás a következőn keresztül:


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.Partner.Providers.RoleConfigurationData.Models.UserMember

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.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember

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

Microsoft.Partner.Core.Collections.ResourceAttributes

displayName

string

id

string

roleId

string

userPrincipalName

string