listGroupsForUser
Lists the IAM groups that the specified IAM user belongs to.
You can paginate the results using the MaxItems and Marker parameters.
Samples
// The following command displays the groups that the IAM user named Bob belongs to.
val resp = iamClient.listGroupsForUser {
userName = "Bob"
}Content copied to clipboard