listGroupsForMember
inline suspend fun DirectoryServiceDataClient.listGroupsForMember(crossinline block: ListGroupsForMemberRequest.Builder.() -> Unit): ListGroupsForMemberResponse
Returns group information for the specified member.
This operation supports pagination with the use of the NextToken
request and response parameters. If more results are available, the ListGroupsForMember.NextToken
member contains a token that you pass in the next call to ListGroupsForMember
. This retrieves the next set of items.
You can also specify a maximum number of return results with the MaxResults
parameter.
Samples
fun main() {
//sampleStart
// The following command
val resp = directoryServiceDataClient.listGroupsForMember {
directoryId = "d-12233abcde"
samAccountName = "twhitlock"
memberRealm = "example.local"
realm = "examplecorp.com"
}
//sampleEnd
}