POST/groups/{groupId}/members

그룹에 구성원을 추가한다. 외부 그룹 및 동적 그룹은 추가할 수 없다.

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증를 참고한다.

Scope

directory
group

HTTP Request

POSThttps://www.worksapis.com/v1.0/groups/{groupId}/members

Path Parameters

ParameterTypeDescription
groupId string 

그룹 ID 또는 외부 키.
외부 키는 "externalKey:{externalKey}" 형태


required 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

PropertyTypeDescription
id string 

구성원,조직,그룹의 ID
구성원 ID는 다음을 지정 가능
- 메일
- 리소스 ID
- 외부 키 "externalKey:{externalKey}" 형태


required 
type string 

required
Allowed values : USER, ORGUNIT, GROUP 

Request Example

user example

1{2  "id": "userf7da-f82c-4284-13e7-030f3b4c756x",3  "type": "USER"4}

orgunit example

1{2  "id": "orgunitf-f27f-4af8-27e1-03817a911417",3  "type": "ORGUNIT"4}

group example

1{2  "id": "group769-e656-477d-69c7-04e2f73a4a77",3  "type": "GROUP"4}

Response

HTTP 201

Created

HTTP 400

Bad Request

HTTP 403

Forbidden

HTTP 404

Not Found

HTTP 409

Conflict