SCIM
SCIM 2.0 エンドポイントを使用すると、ID プロバイダー(Entra ID、Okta など)から組織メンバーのプロビジョニング、更新、無効化を自動で行えます。ベース URL は https://api.maiagent.ai/api/v1/scim/{orgUuid} で、パスの末尾に / は付けません。認証には Authorization: Bearer <SCIM Token>(管理画面の ID 同期設定で取得します。API Key ではありません)を使用し、Content-Type: application/scim+json を指定します。リクエストの上限は組織ごとに毎分 100 回です。フィールドのマッピングと無効化の動作については、技術マニュアルのメンバーのプロビジョニングを参照してください。
サービスプロバイダー設定を取得(IdP 検出用)
GET /api/v1/scim/{orgUuid}/ServiceProviderConfig
パラメータ
orgUuid
✅
string
コード例
# API 呼び出し例 (Shell)
curl -X GET "https://api.maiagent.ai/api/v1/scim/550e8400-e29b-41d4-a716-446655440000/ServiceProviderConfig" \
-H "Authorization: Bearer YOUR_SCIM_TOKEN"
# 実行前に YOUR_API_KEY を置き換え、リクエストデータを確認してください。const axios = require('axios');
// リクエストヘッダーを設定します
const config = {
headers: {
'Authorization': 'Bearer YOUR_SCIM_TOKEN'
}
};
axios.get("https://api.maiagent.ai/api/v1/scim/550e8400-e29b-41d4-a716-446655440000/ServiceProviderConfig", config)
.then(response => {
console.log('レスポンスを正常に取得しました:');
console.log(response.data);
})
.catch(error => {
console.error('リクエストでエラーが発生しました:');
console.error(error.response?.data || error.message);
});レスポンスボディ
200
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
メンバーを一覧取得または検索(`filter`、`startIndex`、`count` に対応)
GET /api/v1/scim/{orgUuid}/Users
パラメータ
orgUuid
✅
string
コード例
レスポンスボディ
200
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
メンバーを作成
POST /api/v1/scim/{orgUuid}/Users
パラメータ
orgUuid
✅
string
コード例
レスポンスボディ
200
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
特定のメンバーを取得
GET /api/v1/scim/{orgUuid}/Users/{userId}
パラメータ
orgUuid
✅
string
userId
✅
string
コード例
レスポンスボディ
200
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
メンバーを完全に置換
PUT /api/v1/scim/{orgUuid}/Users/{userId}
パラメータ
orgUuid
✅
string
userId
✅
string
コード例
レスポンスボディ
200
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
メンバーを部分更新(無効化、名前の変更、externalId の変更)
PATCH /api/v1/scim/{orgUuid}/Users/{userId}
パラメータ
orgUuid
✅
string
userId
✅
string
コード例
レスポンスボディ
200
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
メンバーを無効化
DELETE /api/v1/scim/{orgUuid}/Users/{userId}
パラメータ
orgUuid
✅
string
userId
✅
string
コード例
レスポンスボディ
204
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
グループを一覧取得(MaiAgent のロールに対応)
GET /api/v1/scim/{orgUuid}/Groups
パラメータ
orgUuid
✅
string
コード例
レスポンスボディ
200
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
グループを作成
POST /api/v1/scim/{orgUuid}/Groups
パラメータ
orgUuid
✅
string
コード例
レスポンス内容
200
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
特定のグループを取得
GET /api/v1/scim/{orgUuid}/Groups/{groupId}
パラメータ
groupId
✅
string
orgUuid
✅
string
コード例
レスポンス内容
200
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
グループ全体を置換
PUT /api/v1/scim/{orgUuid}/Groups/{groupId}
パラメータ
groupId
✅
string
orgUuid
✅
string
コード例
レスポンス内容
200
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
グループを部分更新(名前の変更、メンバーの追加・削除)
PATCH /api/v1/scim/{orgUuid}/Groups/{groupId}
パラメータ
groupId
✅
string
orgUuid
✅
string
コード例
レスポンス内容
200
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
グループを削除
DELETE /api/v1/scim/{orgUuid}/Groups/{groupId}
パラメータ
groupId
✅
string
orgUuid
✅
string
コード例
レスポンス内容
204
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
最終更新
役に立ちましたか?