Skip to main content

user_groups

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

Overview

Nameuser_groups
TypeResource
Idaws.quicksight.user_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) for the group.
descriptionstringThe group description.
group_namestringThe name of the group. (pattern: <code>[\u0020-\u00FF]+</code>)
principal_idstringThe principal ID of the group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_user_groupsselectuser_name, aws_account_id, namespace, regionnext-token, max-resultsLists the Amazon Quick Sight groups that an Amazon Quick Sight user is a member of.

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
aws_account_idstringThe Amazon Web Services account ID that the user is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon Quick Sight account.
namespacestringThe namespace. Currently, you should set this to default.
regionstringAWS region (default: us-east-1)
user_namestringThe Amazon Quick Sight user name that you want to list group memberships for.
max-resultsintegerThe maximum number of results to return from this request.
next-tokenstringA pagination token that can be used in a subsequent request.

SELECT examples

Lists the Amazon Quick Sight groups that an Amazon Quick Sight user is a member of.

SELECT
arn,
description,
group_name,
principal_id
FROM aws.quicksight.user_groups
WHERE user_name = '{{ user_name }}' -- required
AND aws_account_id = '{{ aws_account_id }}' -- required
AND namespace = '{{ namespace }}' -- required
AND region = '{{ region }}' -- required
AND `next-token` = '{{ next-token }}'
AND `max-results` = '{{ max-results }}'
;