내용으로 건너뛰기

Update User in Identity Store

0

I'm attempting to update a user's attributes in the Identity Store and I'm having an issue determining what the attribute path & value should be. If i wanted to, for example, update a users nickname, how would this be done using the JSON array below? What values would I plug in for the AttributePath & AttributeValue?

I've been folowing this document at (https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_UpdateUser.html) without any luck.

{
   "IdentityStoreId": 123456,
   "Operations": [ 
      { 
         "AttributePath": "string",
         "AttributeValue": JSON value
      }
   ],
   "UserId": 987654321
}
질문됨 3년 전1천회 조회
1개 답변
0
수락된 답변

Hello,

UpdateUser does not support nested/targeted replace of complex or list attributes. So in this case, we’ll need to provide a List of emails. Something like:

input.json

{
    "IdentityStoreId": "d-1234567890",
    "UserId": "uid",
    "Operations": [
    {
        "AttributePath": "emails",
        "AttributeValue": [{
            "value": "testemail@gmail.com",
            "type": "work",
            "primary": true
        }]
    }
]
 }

$ aws identitystore update-user --cli-input-json file://input.json --region us-east-1

AWS
답변함 3년 전
전문가
검토됨 2년 전
  • Can the update_user endpoint toggle the user Enabled/Disabled status somehow?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.