groups
Creates, updates, deletes, gets or lists a groups resource.
Overview
| Name | groups |
| Type | Resource |
| Id | aws.identitystore.groups |
Fields
The following fields are returned by SELECT queries:
- describe_group
- list_groups
| Name | Datatype | Description |
|---|---|---|
created_at | string (date-time) | The date and time the group was created. |
created_by | string | The identifier of the user or system that created the group. |
description | string | A string containing a description of the group. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
display_name | string | The group’s display name value. The length limit is 1,024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in this attribute. This value is specified at the time that the group is created and stored as an attribute of the group object in the identity store. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
external_ids | array | A list of ExternalId objects that contains the identifiers issued to this resource by an external identity provider. |
group_id | string | The identifier for a group in the identity store. (pattern: <code>([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}</code>) |
identity_store_id | string | The globally unique identifier for the identity store. (pattern: <code>d-[0-9a-f]{10}$|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>) |
updated_at | string (date-time) | The date and time the group was last updated. |
updated_by | string | The identifier of the user or system that last updated the group. |
| Name | Datatype | Description |
|---|---|---|
created_at | string (date-time) | The date and time the group was created. |
created_by | string | The identifier of the user or system that created the group. |
description | string | A string containing a description of the specified group. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
display_name | string | The display name value for the group. The length limit is 1,024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in this attribute. This value is specified at the time the group is created and stored as an attribute of the group object in the identity store. Prefix search supports a maximum of 1,000 characters for the string. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
external_ids | array | A list of ExternalId objects that contains the identifiers issued to this resource by an external identity provider. |
group_id | string | The identifier for a group in the identity store. (pattern: <code>([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}</code>) |
identity_store_id | string | The globally unique identifier for the identity store. (pattern: <code>d-[0-9a-f]{10}$|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>) |
updated_at | string (date-time) | The date and time the group was last updated. |
updated_by | string | The identifier of the user or system that last updated the group. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_group | select | region | Retrieves the group metadata and attributes from GroupId in an identity store. If you have access to a member account, you can use this API operation from the member account. For more information, see Limiting access to the identity store from member accounts in the IAM Identity Center User Guide. | |
list_groups | select | region | Lists all groups in the identity store. Returns a paginated list of complete Group objects. Filtering for a Group by the DisplayName attribute is deprecated. Instead, use the GetGroupId API action. If you have access to a member account, you can use this API operation from the member account. For more information, see Limiting access to the identity store from member accounts in the IAM Identity Center User Guide. | |
create_group | insert | region, IdentityStoreId | Creates a group within the specified identity store. | |
update_group | update | region, IdentityStoreId, GroupId, Operations | Updates the specified group metadata and attributes in the specified identity store. | |
delete_group | delete | region | Delete a group within an identity store given GroupId. | |
is_member_in_groups | exec | region, IdentityStoreId, MemberId, GroupIds | Checks the user's membership in all requested groups and returns if the member exists in all queried groups. If you have access to a member account, you can use this API operation from the member account. For more information, see Limiting access to the identity store from member accounts in the IAM Identity Center User Guide. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_group
- list_groups
Retrieves the group metadata and attributes from GroupId in an identity store. If you have access to a member account, you can use this API operation from the member account. For more information, see Limiting access to the identity store from member accounts in the IAM Identity Center User Guide.
SELECT
created_at,
created_by,
description,
display_name,
external_ids,
group_id,
identity_store_id,
updated_at,
updated_by
FROM aws.identitystore.groups
WHERE region = '{{ region }}' -- required
;
Lists all groups in the identity store. Returns a paginated list of complete Group objects. Filtering for a Group by the DisplayName attribute is deprecated. Instead, use the GetGroupId API action. If you have access to a member account, you can use this API operation from the member account. For more information, see Limiting access to the identity store from member accounts in the IAM Identity Center User Guide.
SELECT
created_at,
created_by,
description,
display_name,
external_ids,
group_id,
identity_store_id,
updated_at,
updated_by
FROM aws.identitystore.groups
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_group
- Manifest
Creates a group within the specified identity store.
INSERT INTO aws.identitystore.groups (
IdentityStoreId,
DisplayName,
Description,
region
)
SELECT
'{{ IdentityStoreId }}' /* required */,
'{{ DisplayName }}',
'{{ Description }}',
'{{ region }}'
RETURNING
group_id,
identity_store_id
;
# Description fields are for documentation purposes
- name: groups
props:
- name: region
value: "{{ region }}"
description: Required parameter for the groups resource.
- name: IdentityStoreId
value: "{{ IdentityStoreId }}"
description: |
The globally unique identifier for the identity store.
- name: DisplayName
value: "{{ DisplayName }}"
description: |
A string containing the name of the group. This value is commonly displayed when the group is referenced. Administrator and AWSAdministrators are reserved names and can't be used for users or groups.
- name: Description
value: "{{ Description }}"
description: |
A string containing the description of the group.
UPDATE examples
- update_group
Updates the specified group metadata and attributes in the specified identity store.
UPDATE aws.identitystore.groups
SET
IdentityStoreId = '{{ IdentityStoreId }}',
GroupId = '{{ GroupId }}',
Operations = '{{ Operations }}'
WHERE
region = '{{ region }}' --required
AND IdentityStoreId = '{{ IdentityStoreId }}' --required
AND GroupId = '{{ GroupId }}' --required
AND Operations = '{{ Operations }}' --required;
DELETE examples
- delete_group
Delete a group within an identity store given GroupId.
DELETE FROM aws.identitystore.groups
WHERE region = '{{ region }}' --required
;
Lifecycle Methods
- is_member_in_groups
Checks the user's membership in all requested groups and returns if the member exists in all queried groups. If you have access to a member account, you can use this API operation from the member account. For more information, see Limiting access to the identity store from member accounts in the IAM Identity Center User Guide.
EXEC aws.identitystore.groups.is_member_in_groups
@region='{{ region }}' --required
@@json=
'{
"IdentityStoreId": "{{ IdentityStoreId }}",
"MemberId": "{{ MemberId }}",
"GroupIds": "{{ GroupIds }}"
}'
;