Skip to content

Cannot edit profile attributes - IAM Identity Center

0

Greetings everyone, I started using IAM Identity Manager to centrally manage the users of my AWS accounts. I don't have any external IdP just the Identity Center. The problem that I am facing is that I cannot change the attributes of any of my users except the first user I created. Bit odd isn't it ?

When I try update the attributes using the console I go IAM Identity Center / Users then I click on a user and then I click edit. Then I try to change any of the available attributes and I get the following error "Invalid credentials attribute provided". Invalid credentials attribute provided

After failing a couple of times I tried using the AWS CLI directly to check if it is a problem of the console. Using the CLI I managed to change some of the attributes which I couldn't change from the console like the userName for example using the command below.

aws identitystore update-user --identity-store-id <identity-store-id> --user-id <user-id> --operations '[{ "AttributePath": "userName", "AttributeValue": "johndoe"}]'

When I tried to change the Department attribute using the command below I got another error different from the one I was getting at the beginning.

aws identitystore update-user --identity-store-id <identity-store-id> --user-id <user-id> --operations '[{ "AttributePath": "department", "AttributeValue": "First"}]'

The above command produced the following error : An error occurred (ValidationException) when calling the UpdateUser operation: Updates for AttributePath: department is not supported.

Later I tried to create a new user from scratch and I set a value to the Department attribute to see if this value is going to be saved. After the user was created I want to the the user's profile and I saw that the attribute was set correctly! Then I tried to change the value of the Department attribute of the new user from the console and wasn't able to do so (same error as the first one). Then I tried with the CLI for the new user and got the second error again.

A summary :

  • From Console, I can edit only the profile attributes of my first created user (including the department attribute).
  • From the CLI I can update only specific attributes for all users (department not included).
  • When creating a user I can set all attributes but I cannot change them from the console later and using the CLI I can change only specific ones (department not included).

asked 2 years ago429 views

1 Answer
0

The issue you're experiencing with editing profile attributes in IAM Identity Center is not uncommon and appears to be related to specific limitations and behaviors of the service.

For most users in IAM Identity Center, you can edit basic profile details such as name and email address through the console. To do this, you should:

  1. Open the IAM Identity Center console
  2. Choose "Users"
  3. Select the user you want to edit
  4. On the user's Profile page, click "Edit" next to "Profile details"
  5. Update the properties as needed and save the changes

However, it seems that you're encountering restrictions when trying to edit certain attributes, particularly the "department" attribute, for users other than the first one you created. This behavior is somewhat unexpected and may be a limitation of the current implementation.

The fact that you can set the department attribute when creating a new user, but cannot edit it later (either through the console or CLI) for most users, suggests that some attributes might be immutable after initial creation.

Your experience with the CLI, where you can update some attributes (like userName) but not others (like department), aligns with the error message you received: "Updates for AttributePath: department is not supported." This indicates that certain attributes are not designed to be modified after initial creation, at least through the current API.

The ability to edit all attributes for your first created user might be related to that user having special permissions or being treated differently by the system, possibly as an initial administrator account.

To work around these limitations, you might consider:

  1. Setting all desired attributes correctly when initially creating users.
  2. If you need to change attributes that can't be edited, you may need to delete and recreate the user with the correct attributes.
  3. For attributes that can be updated via CLI (like userName), continue to use the CLI method you've discovered.

If this functionality is crucial for your use case, you may want to contact AWS support to inquire about the specific limitations on attribute editing and whether there are plans to expand editability in the future. Additionally, regularly check AWS documentation and release notes for any updates or changes to IAM Identity Center functionality.
Sources
Edit Identity Center directory user properties - AWS IAM Identity Center
Manage identities in IAM Identity Center - AWS IAM Identity Center

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.