権限の表示
ユーザーは、URI /entitlements GET
によって、ユーザーIDでフィルタされる割当済の権限リストを取得し、ユーザーにプロビジョニングされているものを確認できます。
cURLの例
curl -H "Content-Type: application/json" -X GET -u username:password https://pseudo.com/iam/governance/selfservice/api/v1/entitlements?userId=82
GETレスポンス本文
{ "links": [ { "rel": "self", "href": "https://pseudo.com/iam/governance/selfservice/api/v1/entitlements? userId=82&offset=1&limit=10" }, { "rel": "first", "href": "https://pseudo.com/iam/governance/selfservice/api/v1/entitlements? userId=82&offset=1&limit=10" } ], "count": 2, "hasMore": false, "totalResult": -1, "entitlements": [ { "links": [ { "rel": "self", "href": "https://pseudo.com/iam/governance/selfservice/api/v1/entitlements/265" } ], "id": "265", "name": "CN=ADGroup_AAT,OU=MainOrg_HNK,OU=Vision,DC=adlrg12c,DC=us,DC=pseudo,DC=com", "description": "" }, { "links": [ { "rel": "self", "href": "https://pseudo.com/iam/governance/selfservice/api/v1/entitlements/624" } ], "id": "624", "name": "CN=ADGroup_AGI,OU=MainOrg_WMM,OU=Vision,DC=adlrg12c,DC=us,DC=pseudo,DC=com", "description": "" } ] }