listGroups

Returns group information for the specified directory.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the ListGroups.NextToken member contains a token that you pass in the next call to ListGroups. 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 lists the name and default attributes for groups on the examplecorp. com
// domain.
val resp = directoryServiceDataClient.listGroups {
    directoryId = "d-12233abcde"
    maxResults = 123
    nextToken = "123456"
    realm = "examplecorp.com"
} 
   //sampleEnd
}