組織を追加、更新、または削除する
組織を追加する
親組織ID、組織名、組織コードをリクエストのパラメーターとして受け取り、追加した組織情報をレスポンスとして返すAPIです。
API名
AdminAddOrg
使用可能なGaroonのバージョン
- パッケージ版Garoon 3.0以降
リクエスト
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| org_code/text() | xsd:string | 1 | 組織コード |
| org_name/text() | xsd:string | 1 | 組織名 |
| parent_orgId/text() | xsd:integer | 0~1 | 親組織ID |
例
|
|
レスポンス
API名とレスポンスの要素名が異なります。
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| org_info | admin:OrgDetail | 1 | 追加した組織情報 |
| orgId/text() | xsd:intger | 1 | 組織ID |
例
|
|
組織を更新する
組織ID、組織名、組織コードをリクエストのパラメーターとして受け取り、変更した組織情報をレスポンスとして返すAPIです。
API名
AdminModifyOrgInfo
使用可能なGaroonのバージョン
- パッケージ版Garoon 3.0以降
リクエスト
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| orgId/text() | xsd:integer | 1 | 変更する組織のID |
| org_code/text() | xsd:string | 1 | 組織コード |
| org_name/text() | xsd:string | 1 | 組織名 |
例
|
|
レスポンス
API名とレスポンスの要素名が異なります。
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| org_info | admin:OrgDetail | 1 | 変更した組織情報 |
例
|
|
組織を削除する
組織IDをリクエストのパラメーターとして受け取り、削除された組織IDをレスポンスとして返すAPIです。 存在しない組織IDを指定した場合、値は無視されます。
API名
AdminRemoveOrgsByIds
使用可能なGaroonのバージョン
- パッケージ版Garoon 3.0以降
リクエスト
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| orgId/text() | xsd:integer | 1 | 削除する組織のID |
例
|
|
レスポンス
API名とレスポンスの要素名が異なります。
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| number_orgs_affected/text() | xsd:integer | 1 | 削除された組織の数 |
| affected_orgId/text() | xsd:integer | 0~ 無制限 | 削除された組織のID |
例
|
|
組織にユーザーを所属させる
組織IDと、その組織に追加するGaroonユーザーIDを受け取り、組織に追加されたGaroonユーザーIDをレスポンスとして返すAPIです。
API名
AdminAddUsersToOrg
使用可能なGaroonのバージョン
- パッケージ版Garoon 3.0以降
リクエスト
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| orgId/text() | xsd:integer | 1 | ユーザーを追加する組織のID |
| userId/text() | xsd:integer | 1~ 無制限 | 組織に追加するGaroonユーザーID |
例
|
|
レスポンス
API名とレスポンスの要素名が異なります。
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| number_relationships_affected/text() | xsd:integer | 1 | 組織に追加されたユーザーの数 |
| affected_orgId/text() | xsd:integer | 1 | 追加対象の組織 |
| affected_userId/text() | xsd:integer | 0~ 無制限 | 組織に追加したGaroonユーザーID |
例
|
|
組織からユーザーを削除する
組織から削除するGaroonユーザーIDをリクエストのパラメーターとして受け取り、削除されたGaroonユーザーIDをレスポンスとして返すAPIです。
API名
AdminRemoveUsersFromOrg
使用可能なGaroonのバージョン
- パッケージ版Garoon 3.0以降
リクエスト
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| orgId/text() | xsd:integer | 1 | ユーザーを削除する組織のID |
| userId/text() | xsd:integer | 1~ 無制限 | 組織から削除するGaroonユーザーID |
例
|
|
レスポンス
API名とレスポンスの要素名が異なります。
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| number_relationships_affected/text() | xsd:integer | 1 | 組織から削除されたユーザーの数 |
| affected_orgId/text() | xsd:integer | 1 | 削除対象の組織ID |
| affected_userId/text() | xsd:integer | 0~ 無制限 | 組織から削除されたGaroonユーザーID |
例
|
|
組織の親組織を変更する
組織IDと、その組織の親にする組織のIDをリクエストのパラメーターとして受け取り、親組織が変更された組織をレスポンスとして返すAPIです。
移動する組織に子組織が存在する場合、子組織も合わせて移動します。
API名
AdminAddChildrenOfOrg
使用可能なGaroonのバージョン
- パッケージ版Garoon 3.0以降
リクエスト
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| parent_orgId/text() | xsd:integer | 1 | 親組織ID |
| child_orgId/text() | xsd:integer | 1~ 無制限 | 親組織に追加する組織ID |
例
|
|
レスポンス
API名とレスポンスの要素名が異なります。
| パラメーター名 | 型 | パラメーター数 | 説明 |
|---|---|---|---|
| number_relationships_affected/text() | xsd:integer | 1 | 親組織に追加した組織の数 |
| affected_parent_orgId/text() | xsd:integer | 1 | 親組織ID |
| affected_child_orgId/text() | xds:integer | 0~ 無制限 | 親組織に追加された組織ID |
例
|
|
