Passer au contenu

IAM - Java SDK 2 method for listing users in a specified group

0

What is the Java SDK v2 method for getting a list of all the users attached to a specified IAM group?

I see there is a method listGroupsForUser which lists all the attached groups for a specified user. However I can't seem to find a method like ListUsersForGroup which goes the other way, i.e., get a list of users that are attached to a specified Group.

These are my SDK-related maven entries:

<groupId>software.amazon.awssdk</groupId> <artifactId>bom</artifactId> <version>2.17.86</version>

and

<groupId>software.amazon.awssdk</groupId> <artifactId>iam</artifactId> <version>2.17.53</version>

demandé il y a 2 ans286 vues

2 réponses
0

I do have my own solution. Sorry I forgot to mention it.

But I was wondering if this actually exists in the SDK (I think it should) and I am somehow missing it.

P.S What I want and cannot find is a method for the list of users for a specified group. I do find a method for listing all groups for a specified user which is iamClient.listGroupsForUser().

répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.