Delen via


Manage customer accounts - Create Directory Role

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

URI-parameters

Name In Vereist Type Description
customer_id
path True

string

Tenant-id van klant.

role_id
path True

string

De maprol-id.

Aanvraagkoptekst

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

Name Vereist Type Description
Authorization True

string

Bearer-token voor autorisatie

ms-correlationid

string

Wordt intern gebruikt voor het bijhouden van aanvragen. Als er geen ms-correlationid is opgegeven, genereert de server een nieuwe voor elke aanvraag

ms-cv

string

Wordt intern gebruikt voor het bijhouden van aanvragen. Als er geen ms-cv is opgegeven, genereert de server een nieuwe voor elke aanvraag

ms-requestid

string

Wordt gebruikt voor idempotentie van aanvragen. Als er geen ms-requestid is opgegeven, genereert de server een nieuwe voor elke aanvraag

Aanvraagbody

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

Name Type Description
accountId

string

displayName

string

id

string

roleId

string

userPrincipalName

string

Antwoorden

Name Type Description
200 OK

object

OK

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

201 Created

Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember

De aanvraag is geslaagd. De hoofdtekst van het antwoord bevat het zojuist gemaakte gebruikerslid.

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

Definities

Name Description
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember

Microsoft.Partner.Core.Collections.ResourceAttributes

Name Type Description
etag

string

objectType

string

Microsoft.Partner.Providers.RoleConfigurationData.Models.UserMember

Name Type Description
accountId

string

attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

displayName

string

id

string

roleId

string

userPrincipalName

string