Skip to main content

groups_for_members

Creates, updates, deletes, gets or lists a groups_for_members resource.

Overview​

Namegroups_for_members
TypeResource
Idaws.ds_data.groups_for_members

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
group_scopestringThe scope of the AD group. For details, see Active Directory security groups. (DomainLocal, Global, Universal, BuiltinLocal)
group_typestringThe AD group type. For details, see Active Directory security group type. (Distribution, Security)
sam_account_namestringThe name of the group. (pattern: <code>^[^:;|=+"*?<>/\,&#91;&#93;@]+$</code>)
sidstringThe unique security identifier (SID) of the group.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_groups_for_memberselectDirectoryId, regionReturns 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.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
DirectoryIdstringThe identifier (ID) of the directory that's associated with the member.
regionstringAWS region (default: us-east-1)

SELECT examples​

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.

SELECT
group_scope,
group_type,
sam_account_name,
sid
FROM aws.ds_data.groups_for_members
WHERE DirectoryId = '{{ DirectoryId }}' -- required
AND region = '{{ region }}' -- required
;