Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mfriesen committed Jul 4, 2024
1 parent e488036 commit 232fab4
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,18 @@ public ListUsersResponse listUsers(final String paginationToken, final Integer l
return this.cognitoProvider.listUsers(usersRequest);
}

/**
* Get Group.
*
* @param groupName {@link String}.
* @return {@link GetGroupResponse}
*/
public GetGroupResponse getGroup(final String groupName) {
GetGroupRequest req =
GetGroupRequest.builder().userPoolId(this.userPoolId).groupName(groupName).build();
return this.cognitoProvider.getGroup(req);
}

/**
* Get User.
*
Expand All @@ -207,18 +219,6 @@ public GetUserResponse getUser(final AuthenticationResultType token) {
return this.cognitoProvider.getUser(req);
}

/**
* Get Group.
*
* @param groupName {@link String}.
* @return {@link GetGroupResponse}
*/
public GetGroupResponse getGroup(final String groupName) {
GetGroupRequest req = GetGroupRequest.builder().userPoolId(this.userPoolId).groupName(groupName
).build();
return this.cognitoProvider.getGroup(req);
}

/**
* Get User.
*
Expand Down

0 comments on commit 232fab4

Please sign in to comment.