1 Answer
- Newest
- Most votes
- Most comments
0
Hi Binfer,
- To set password via sdk look at this reference: https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateLoginProfile.html
- to add user to a group: https://docs.aws.amazon.com/IAM/latest/APIReference/API_AddUserToGroup.html
Relevant content
- Accepted Answerasked a year ago
- asked a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 5 months ago
Thanks, but that works only for IAM and not IAM Identity center. They both appear to have different API's. The identity server client had no UpdateLoginProfile mechanism and the IAM UpdateLoginProfile does not work with users created with the identity center API as identityStoreId is needed for API calls. Ref: https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/identitystore/IdentitystoreClient.html
I see. for adding user to a group you could try this? https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/identitystore/IdentitystoreClient.html#createGroupMembership(software.amazon.awssdk.services.identitystore.model.CreateGroupMembershipRequest)
To rest password I am not able to find a proper method