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