GET グループ API
GET グループ API はアカウントからグループのリストを取得します。
動作方法
GET メソッドを使用してグループのリストを取得します:
GET /scim/v2/Groups/
認証
すべての API 呼び出しには OAuth ベアラートークンが使用され、API キーは使用されません。
詳細については、認証を参照してください。
GET 操作のパラメータ
このコマンドは以下のパラメータを取ります:
| オブジェクト | タイプ | 必須 | 説明 |
|---|---|---|---|
count |
数値 | 任意 | 返すレコードの数。最大値は 100 です。 |
startIndex |
数値 | 任意 | インデックスで返す最初のレコード。count がレコード数を超える場合、この値は無視されます。 |
filter |
文字列 | 任意 | ユーザー名に基づいてユーザーをフィルタリングします。同等の値を見つけるために eq 演算子を使用します。 |
excludedAttributes |
文字列 | 任意 | 応答から除外する属性のカンマ区切りリスト。許可される値は members, externalId, meta, meta.location, meta.resourceType です。 |
例 cURL リクエスト
curl -H 'Authorization: Bearer {token}' \
'https://developer.tealiumapis.com/scim/v2/Groups'
curl -H 'Authorization: Bearer {token}' \
'https://developer.tealiumapis.com/scim/v2/Groups?startIndex=1&count=12'
curl -H 'Authorization: Bearer {token}' \
'https://developer.tealiumapis.com/scim/v2/Groups?filter=displayName%20eq%20%22group_name%22'
curl -H 'Authorization: Bearer {token}' \
'https://developer.tealiumapis.com/scim/v2/Groups?excludedAttributes=members%2Cmeta.resourceType&count=21'
例応答
エラーメッセージ
このエンドポイントの潜在的なエラーメッセージ:
| エラーコード | エラーメッセージ |
|---|---|
| 400 | {"schemas": ["urn:ietf:params:scim:api:messages:2.0:Error"],"status": "400","scimType": "invalidValue","detail": "{parameter} must be a number." |
| 401 | {"returnCode" : 401 , "message" : "Authentication failed."} |
| 403 | {"schemas": [ "urn:ietf:params:scim:api:messages:2.0:Error"],"status": "403","scimType": null,"detail": "Forbidden."} |
| 405 | {"schemas": ["urn:ietf:params:scim:api:messages:2.0:Error"],"status": "405","scimType": "invalidMethod","detail": "Method is not allowed on this endpoint. Allowed methods: GET, PUT, DELETE, PATCH."} |
| 500 | {"schemas": ["urn:ietf:params:scim:api:messages:2.0:Error"],"status": "500","scimType": "internalServerError","detail": "Error processing json for extension - account {ACCOUNT}"} |
最終更新日 :: 2025年December月17日