Identity Center List users and users in groups

0

Hi Is there an easy way to list all the users in IAM Identity Center and all the groups they belong to? I would like to run a PowerShell/CLI command and run it out in to a .csv if possible. Maybe there is an export .csv function in the management console but I cannot seem to find it.

Any help would be much appreciated

Regards

MMuser65

1 Answer
0

We can make use of recently launched AWS IAM Identity Center APIs to do that. There is a sample AWS Identity Store operations python script called identitystore_operations.py is available in the iam-identitycenter-identitystoreapi-operations GitHub repository. This sample program shows you how you can automate Identity Store operations to create a new user, add the user to a group, list group memberships, and update the user’s group memberships operations. This sample program requires the AWS SDK for Python (Boto3). For instructions to install the AWS SDK for Python, see the Boto3 Quickstart. For more details, refer to the blog at https://aws.amazon.com/blogs/security/announcing-new-aws-iam-identity-center-apis-to-manage-users-and-groups-at-scale/

AWS
answered a year 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.

Guidelines for Answering Questions