GET/orgunits
組織リストを取得する。
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
directory
directory.read
orgunit
orgunit.read
| Parameter | Type | Description |
|---|---|---|
| domainId | integer | ドメインID (既定値: 認可ドメイン ID) example : 10000001 format : int32 |
| count | integer | 取得数 default : 100 minimum : 1 maximum : 100 example : 100 format : int32 |
| cursor | string | リストのカーソル値 (URL エンコードする) example : JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| orgUnits | array (OrgUnit) | 組織リスト |
| responseMetaData | object (responseMetaData) | レスポンスのメタデータ |
| Property | Type | Description |
|---|---|---|
| domainId | integer | ドメイン ID required format : int32 |
| orgUnitId | string | 組織ID
readOnly : true |
| orgUnitExternalKey | string | 組織の ExternalKey "%"、"\"、"#、"/"、"?" の特殊文字は利用不可。 maxLength : 100 nullable : true |
| orgUnitName | string | 組織名 required maxLength : 100 |
| i18nNames | array (OrgUnitI18nName) | 多言語名リスト |
| string | 組織メールアドレス (組織を更新する際は必須)
maxLength : 90 | |
| description | string | 組織説明 maxLength : 160 nullable : true |
| visible | boolean | 組織公開フラグ default : true |
| parentOrgUnitId | string | 上位組織 ID
nullable : true |
| parentExternalKey | string | 上位組織の ExternalKey readOnly : true nullable : true |
| displayOrder | integer | 組織の表示順 A minimum : 1 format : int32 |
| displayLevel | integer | 組織の階層 (depth, 1 から開始) minimum : 1 format : int32 readOnly : true |
| aliasEmails | array (string) | 組織のサブメールアドレスのリスト (アドバンストプランのみ登録可) minItems : 0 maxItems : 20 |
| canReceiveExternalMail | boolean | 外部メールの受信可否フラグ default : false |
| useMessage | boolean | トークの利用フラグ
default : false |
| useNote | boolean | ノートの利用フラグ
default : false |
| useCalendar | boolean | 予定の利用フラグ
default : false |
| useTask | boolean | タスクの利用フラグ
default : false |
| useFolder | boolean | フォルダの利用フラグ
default : false |
| useServiceNotification | boolean | サービス通知送信フラグ default : false |
| membersAllowedToUseOrgUnitEmailAsRecipient | array (OrgUnitAllowedMember) | 組織のメーリングリストアドレスにメールを送信できるメンバーのリスト minItems : 0 |
| membersAllowedToUseOrgUnitEmailAsSender | array (OrgUnitAllowedMember) | 組織のメーリングリストアドレスを送信メールアドレスとして使用できるメンバーのリスト minItems : 0 |
| Property | Type | Description |
|---|---|---|
| language | string | 多言語コード required Allowed values : ja_JP, ko_KR, en_US, zh_CN, zh_TW |
| name | string | 多言語名 required maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| userId | string | ユーザー ID (userId) required |
| userExternalKey | string | ユーザーの ExternalKey readOnly : true nullable : true |
| Property | Type | Description |
|---|---|---|
| nextCursor | string | 次のリスト取得時に使用するカーソル値 |
example
1{2 "orgUnits": [3 {4 "domainId": 10000001,5 "orgUnitId": "orgunitf-f27f-4af8-27e1-03817a911417",6 "orgUnitExternalKey": "externalKeyValue",7 "orgUnitName": "組織01",8 "i18nNames": [9 {10 "language": "en_US",11 "name": "Team01"12 }13 ],14 "email": "team01@example.com",15 "description": "desc",16 "visible": true,17 "parentOrgUnitId": "parernt9-ffda-4395-24a8-03fb9e22e051",18 "parentExternalKey": "parentExtKeyValue",19 "displayOrder": 1,20 "displayLevel": 1,21 "aliasEmails": [22 "alias@example.com"23 ],24 "canReceiveExternalMail": true,25 "useMessage": true,26 "useNote": true,27 "useCalendar": true,28 "useTask": true,29 "useFolder": true,30 "useServiceNotification": true,31 "membersAllowedToUseOrgUnitEmailAsRecipient": [32 {33 "userId": "e7b4f7da-f82c-4284-13e7-030f3b4c7569",34 "userExternalKey": "userExtKeuy"35 }36 ],37 "membersAllowedToUseOrgUnitEmailAsSender": [38 {39 "userId": "e7b4f7da-f82c-4284-13e7-030f3b4c7569",40 "userExternalKey": "userExtKeuy"41 }42 ]43 }44 ],45 "responseMetaData": {46 "nextCursor": "JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA=="47 }48}