내용으로 건너뛰기

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>

질문됨 2년 전284회 조회

2개 답변
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().

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠