1 回答
- 最新
- 投票最多
- 评论最多
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
相关内容
- AWS 官方已更新 6 个月前
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