DirectoryServiceData / Paginator / ListGroupsForMember

ListGroupsForMember#

class DirectoryServiceData.Paginator.ListGroupsForMember#
paginator = client.get_paginator('list_groups_for_member')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from DirectoryServiceData.Client.list_groups_for_member().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DirectoryId='string',
    MemberRealm='string',
    Realm='string',
    SAMAccountName='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • DirectoryId (string) –

    [REQUIRED]

    The identifier (ID) of the directory that’s associated with the member.

  • MemberRealm (string) –

    The domain name that’s associated with the group member.

    Note

    This parameter is optional, so you can limit your results to the group members in a specific domain.

    This parameter is case insensitive and defaults to Realm

  • Realm (string) –

    The domain name that’s associated with the group.

    Note

    This parameter is optional, so you can return groups outside of your Managed Microsoft AD domain. When no value is defined, only your Managed Microsoft AD groups are returned.

    This value is case insensitive and defaults to your Managed Microsoft AD domain.

  • SAMAccountName (string) –

    [REQUIRED]

    The SAMAccountName of the user, group, or computer that’s a member of the group.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'DirectoryId': 'string',
    'Groups': [
        {
            'GroupScope': 'DomainLocal'|'Global'|'Universal'|'BuiltinLocal',
            'GroupType': 'Distribution'|'Security',
            'SAMAccountName': 'string',
            'SID': 'string'
        },
    ],
    'MemberRealm': 'string',
    'Realm': 'string'
}

Response Structure

  • (dict) –

    • DirectoryId (string) –

      The identifier (ID) of the directory that’s associated with the member.

    • Groups (list) –

      The group information that the request returns.

      • (dict) –

        A structure containing a subset of fields of a group object from a directory.

    • MemberRealm (string) –

      The domain that’s associated with the member.

    • Realm (string) –

      The domain that’s associated with the group.