プロファイルの管理
ユーザーは、URI /users/{userid} GET
で属性を表示できます。
cURLの例
curl -H "Content-Type: application/json" -X GET -u username:password "https://pseudo.com/iam/governance/selfservice/api/v1/users/23?fields=Display Name,First Name,User Login,Department Number,Middle Name"
GETレスポンス本文の例
{ "links": [ { "rel": "self", "href": "https://pseudo.com:PORT/iam/governance/selfservice/api/v1/users/23" } ], "fields": [ { "name": "Display Name", "value": { "base": "Beatrix Kiddo" } }, { "name": "usr_key", "value": 23 } ] }
ユーザーは、URI /users/{userid} PUTまたは/users/{userid} PATCH
で属性を更新できます。
cURLの例
curl -H "Content-Type: application/json" -H "X-Requested-By: <anyvalue>" -X PUT -u username:password -d @put.json https://pseudo.com/iam/governance/selfservice/api/v1/users/24
PUTリクエスト本文の例
{ "fields": [ { "name": "First Name", "value": "BeatrixUpdate1" } ] }
PUTレスポンス本文の例
{ "links": [ { "rel": "self", "href": "https://pseudo.com/iam/governance/selfservice/api/v1/users/24" } ], "id": "24", "name": "Beatrix Kiddo", "request": { "links": [ { "rel": "self", "href": "https://pseudo.com/iam/governance/selfservice/api/v1/requests/10" } ], "id": "10" } }
cURLの例
curl -H "Content-Type: application/json" -H "X-Requested-By: <anyvalue>" -X PATCH -u username:password -d @patch.json https://pseudo.com/iam/governance/selfservice/api/v1/users/18008
PATCHリクエスト本文の例
{ "add": [ { "name": "Last Name", "value": "updateed12345" } ], "delete": [ { "name": "First Name" } ], "update": [ { "name": "Display Name", "value": "supriya12345" } ] }
PATCHレスポンス本文の例
{ "links": [ { "rel": "self", "href": "https://pseudo.com/iam/governance/selfservice/api/v1/users/18008" } ], "id": "18008", "status": "SUCCESS", "request": { "links": [ { "rel": "self", "href": "https://pseudo.com/iam/governance/selfservice/api/v1/requests/10072" } ], "requestId": "10072" } }