1 Answer
- Newest
- Most votes
- Most comments
0
On investigating the error received by you, I was able to confirm that the error "An error occurred (ValidationException) when calling the UpdateUser operation: name: The attribute name should be type COMPLEX, not a list." occurs if it is a syntax error. Kindly refer to the following documentation for the same:
[+] https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_UpdateUser.html
I checked the json file being passed by you and found that the Attribute value parameter has a syntax error.
The following should be the correct syntax of the json file:
{ "IdentityStoreId": "d-XXXXXXXXX", "UserId": "uid", "Operations": [ { "AttributePath": "name", "AttributeValue": [ "FamilyName": "VVV", "GivenName": "YYY" ] } ] }
Kindly use the above json and execute the CLI command.
answered 2 years ago
Relevant content
- asked a year ago
- asked 3 years ago

Thanks for looking into this. I'm not sure I understand the differences between the JSON syntax you provided to the one I initially posted.
I did however find a solution (edited my original post), and the correct syntax for familyname for example is name.familyname.
Thanks again, Elior.