다음을 통해 공유


Manage account profiles - Add new user member to role

지정된 역할에 새 사용자 멤버를 추가합니다.

POST https://api.partnercenter.microsoft.com/v{version}/roles/{role_id}/usermembers

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
role_id
path True

string

역할 식별자입니다.

version
path True

string

API 버전입니다.

요청 헤더

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

Name 필수 형식 Description
Authorization True

string

권한 부여 전달자 토큰

Accept True

string

허용되는 콘텐츠 형식; 널리 수용된 형식 application/json

ms-correlationid

string

내부적으로 요청을 추적하는 데 사용됩니다. ms-correlationid가 제공되지 않으면 서버는 각 요청에 대해 새 를 생성합니다.

ms-requestid

string

요청의 멱등성에 사용됩니다. ms-requestid가 제공되지 않으면 서버는 각 요청에 대해 새 를 생성합니다.

요청 본문

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

Name 형식 Description
accountId

string

역할 할당이 연결된 계정 ID를 가져오거나 설정합니다.

displayName

string

사용자의 표시 이름을 가져오거나 설정합니다.

id

string

멤버의 식별자입니다.

roleId

string

사용자 역할의 식별자입니다.

userPrincipalName

string

사용자 계정의 이름을 가져오거나 설정합니다.

응답

Name 형식 Description
200 OK

object

확인

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

201 Created

Microsoft.Partner.Sdk.Contracts.V1.Contracts.RoleManagement.UserMember

확인

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

400 Bad Request

누락되거나 잘못된 입력이 있었습니다. 응답 본문은 오류 세부 정보를 제공합니다.

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

401 Unauthorized

요청이 인증되지 않았습니다. 클라이언트는 먼저 파트너 API 서비스를 사용하여 인증해야 합니다.

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

403 Forbidden

요청이 인증되었지만 호출자에게 호출할 권한이 없으므로 거부되었습니다.

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

404 Not Found

리소스를 찾을 수 없거나 지정된 입력 매개 변수와 함께 사용할 수 없습니다.

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

500 Internal Server Error

파트너 API 서비스 또는 해당 종속성 중 하나가 요청을 충족하지 못했습니다. 호출자는 이를 다시 시도할 수 있습니다.

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

정의

Name Description
Microsoft.Partner.Sdk.Contracts.V1.Common.ResourceAttributes

공통 개체 특성을 참조합니다.

Microsoft.Partner.Sdk.Contracts.V1.Contracts.RoleManagement.UserMember

사용자의 멤버 정보를 설명합니다.

Microsoft.Partner.Sdk.Contracts.V1.Common.ResourceAttributes

공통 개체 특성을 참조합니다.

Name 형식 Description
etag

string

etag를 가져오거나 설정합니다. 공급자의 개체 버전입니다.

objectType

string

개체의 형식입니다.

Microsoft.Partner.Sdk.Contracts.V1.Contracts.RoleManagement.UserMember

사용자의 멤버 정보를 설명합니다.

Name 형식 Description
accountId

string

역할 할당이 연결된 계정 ID를 가져오거나 설정합니다.

attributes

Microsoft.Partner.Sdk.Contracts.V1.Common.ResourceAttributes

특성을 가져옵니다.

displayName

string

사용자의 표시 이름을 가져오거나 설정합니다.

id

string

멤버의 식별자입니다.

roleId

string

사용자 역할의 식별자입니다.

userPrincipalName

string

사용자 계정의 이름을 가져오거나 설정합니다.