users
Creates, updates, deletes, gets or lists a users resource.
Overview
| Name | users |
| Type | Resource |
| Id | aws.identitystore.users |
Fields
The following fields are returned by SELECT queries:
- describe_user
- list_users
| Name | Datatype | Description |
|---|---|---|
addresses | array | The physical address of the user. |
birthdate | string | The user's birthdate in YYYY-MM-DD format. This field returns the stored birthdate information for the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
created_at | string (date-time) | The date and time the user was created. |
created_by | string | The identifier of the user or system that created the user. |
display_name | string | The display name of the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
emails | array | The email address of the user. |
extensions | object | A map of explicitly requested attribute extensions associated with the user. Not populated if the user has no requested extensions. |
external_ids | array | A list of ExternalId objects that contains the identifiers issued to this resource by an external identity provider. |
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>) |
locale | string | A string containing the geographical region or location of the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
name | object | The name of the user. |
nick_name | string | An alternative descriptive name for the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
phone_numbers | array | A list of PhoneNumber objects associated with a user. |
photos | array | A list of photos associated with the user. Returns up to 3 photos with their associated metadata including type, display name, and primary designation. |
preferred_language | string | The preferred language of the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
profile_url | string | A URL link for the user's profile. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
roles | array | The roles of the user. |
timezone | string | The time zone for a user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
title | string | A string containing the title of the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
updated_at | string (date-time) | The date and time the user was last updated. |
updated_by | string | The identifier of the user or system that last updated the user. |
user_id | string | The identifier for a user 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>) |
user_name | string | A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}]+</code>) |
user_status | string | The current status of the user account. (ENABLED, DISABLED) |
user_type | string | A string indicating the type of user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
website | string | The user's personal website or blog URL. Returns the stored website information for the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
| Name | Datatype | Description |
|---|---|---|
addresses | array | A list of Address objects containing addresses associated with the user. |
birthdate | string | The user's birthdate in YYYY-MM-DD format. This field stores personal birthdate information for the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
created_at | string (date-time) | The date and time the user was created. |
created_by | string | The identifier of the user or system that created the user. |
display_name | string | A string containing the name of the user that is formatted for display when the user is referenced. For example, "John Doe." 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>) |
emails | array | A list of Email objects containing email addresses associated with the user. |
extensions | object | A map of explicitly requested attribute extensions associated with the user. Not populated if the user has no requested extensions. |
external_ids | array | A list of ExternalId objects that contains the identifiers issued to this resource by an external identity provider. |
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>) |
locale | string | A string containing the geographical region or location of the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
name | object | An object containing the name of the user. |
nick_name | string | A string containing an alternate name for the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
phone_numbers | array | A list of PhoneNumber objects containing phone numbers associated with the user. |
photos | array | A list of photos associated with the user. Users can have up to 3 photos with metadata including type, display name, and primary designation. |
preferred_language | string | A string containing the preferred language of the user. For example, "American English" or "en-us." (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
profile_url | string | A string containing a URL that might be associated with the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
roles | array | A list of Role objects containing roles associated with the user. |
timezone | string | A string containing the time zone of the user. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
title | string | A string containing the title of the user. Possible values are left unspecified. The value can vary based on your specific use case. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
updated_at | string (date-time) | The date and time the user was last updated. |
updated_by | string | The identifier of the user or system that last updated the user. |
user_id | string | The identifier for a user 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>) |
user_name | string | A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}]+</code>) |
user_status | string | The current status of the user account. (ENABLED, DISABLED) |
user_type | string | A string indicating the type of user. Possible values are left unspecified. The value can vary based on your specific use case. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
website | string | The user's personal website or blog URL. This field stores website information for personal or professional use. (pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_user | select | region | Retrieves the user metadata and attributes from the UserId 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_users | select | region | Lists all users in the identity store. Returns a paginated list of complete User objects. Filtering for a User by the UserName attribute is deprecated. Instead, use the GetUserId 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_user | insert | region, IdentityStoreId | Creates a user within the specified identity store. | |
update_user | update | region, IdentityStoreId, UserId, Operations | Updates the specified user metadata and attributes in the specified identity store. | |
delete_user | delete | region | Deletes a user within an identity store given UserId. |
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_user
- list_users
Retrieves the user metadata and attributes from the UserId 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
addresses,
birthdate,
created_at,
created_by,
display_name,
emails,
extensions,
external_ids,
identity_store_id,
locale,
name,
nick_name,
phone_numbers,
photos,
preferred_language,
profile_url,
roles,
timezone,
title,
updated_at,
updated_by,
user_id,
user_name,
user_status,
user_type,
website
FROM aws.identitystore.users
WHERE region = '{{ region }}' -- required
;
Lists all users in the identity store. Returns a paginated list of complete User objects. Filtering for a User by the UserName attribute is deprecated. Instead, use the GetUserId 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
addresses,
birthdate,
created_at,
created_by,
display_name,
emails,
extensions,
external_ids,
identity_store_id,
locale,
name,
nick_name,
phone_numbers,
photos,
preferred_language,
profile_url,
roles,
timezone,
title,
updated_at,
updated_by,
user_id,
user_name,
user_status,
user_type,
website
FROM aws.identitystore.users
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_user
- Manifest
Creates a user within the specified identity store.
INSERT INTO aws.identitystore.users (
IdentityStoreId,
UserName,
Name,
DisplayName,
NickName,
ProfileUrl,
Emails,
Addresses,
PhoneNumbers,
UserType,
Title,
PreferredLanguage,
Locale,
Timezone,
Photos,
Website,
Birthdate,
Roles,
Extensions,
region
)
SELECT
'{{ IdentityStoreId }}' /* required */,
'{{ UserName }}',
'{{ Name }}',
'{{ DisplayName }}',
'{{ NickName }}',
'{{ ProfileUrl }}',
'{{ Emails }}',
'{{ Addresses }}',
'{{ PhoneNumbers }}',
'{{ UserType }}',
'{{ Title }}',
'{{ PreferredLanguage }}',
'{{ Locale }}',
'{{ Timezone }}',
'{{ Photos }}',
'{{ Website }}',
'{{ Birthdate }}',
'{{ Roles }}',
'{{ Extensions }}',
'{{ region }}'
RETURNING
identity_store_id,
user_id
;
# Description fields are for documentation purposes
- name: users
props:
- name: region
value: "{{ region }}"
description: Required parameter for the users resource.
- name: IdentityStoreId
value: "{{ IdentityStoreId }}"
description: |
The globally unique identifier for the identity store.
- name: UserName
value: "{{ UserName }}"
description: |
A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store. Administrator and AWSAdministrators are reserved names and can't be used for users or groups.
- name: Name
description: |
An object containing the name of the user. When used in IAM Identity Center, this parameter is required.
value:
Formatted: "{{ Formatted }}"
FamilyName: "{{ FamilyName }}"
GivenName: "{{ GivenName }}"
MiddleName: "{{ MiddleName }}"
HonorificPrefix: "{{ HonorificPrefix }}"
HonorificSuffix: "{{ HonorificSuffix }}"
- name: DisplayName
value: "{{ DisplayName }}"
description: |
A string containing the name of the user. This value is typically formatted for display when the user is referenced. For example, "John Doe." When used in IAM Identity Center, this parameter is required.
- name: NickName
value: "{{ NickName }}"
description: |
A string containing an alternate name for the user.
- name: ProfileUrl
value: "{{ ProfileUrl }}"
description: |
A string containing a URL that might be associated with the user.
- name: Emails
description: |
A list of Email objects containing email addresses associated with the user.
value:
- Value: "{{ Value }}"
Type: "{{ Type }}"
Primary: {{ Primary }}
- name: Addresses
description: |
A list of Address objects containing addresses associated with the user.
value:
- StreetAddress: "{{ StreetAddress }}"
Locality: "{{ Locality }}"
Region: "{{ Region }}"
PostalCode: "{{ PostalCode }}"
Country: "{{ Country }}"
Formatted: "{{ Formatted }}"
Type: "{{ Type }}"
Primary: {{ Primary }}
- name: PhoneNumbers
description: |
A list of PhoneNumber objects containing phone numbers associated with the user.
value:
- Value: "{{ Value }}"
Type: "{{ Type }}"
Primary: {{ Primary }}
- name: UserType
value: "{{ UserType }}"
description: |
A string indicating the type of user. Possible values are left unspecified. The value can vary based on your specific use case.
- name: Title
value: "{{ Title }}"
description: |
A string containing the title of the user. Possible values are left unspecified. The value can vary based on your specific use case.
- name: PreferredLanguage
value: "{{ PreferredLanguage }}"
description: |
A string containing the preferred language of the user. For example, "American English" or "en-us."
- name: Locale
value: "{{ Locale }}"
description: |
A string containing the geographical region or location of the user.
- name: Timezone
value: "{{ Timezone }}"
description: |
A string containing the time zone of the user.
- name: Photos
description: |
A list of photos associated with the user. You can add up to 3 photos per user. Each photo can include a value, type, display name, and primary designation.
value:
- Value: "{{ Value }}"
Type: "{{ Type }}"
Display: "{{ Display }}"
Primary: {{ Primary }}
- name: Website
value: "{{ Website }}"
description: |
The user's personal website or blog URL. This field allows users to provide a link to their personal or professional website.
- name: Birthdate
value: "{{ Birthdate }}"
description: |
The user's birthdate in YYYY-MM-DD format. This field supports standard date format for storing personal information.
- name: Roles
description: |
A list of Role objects containing roles associated with the user.
value:
- Value: "{{ Value }}"
Type: "{{ Type }}"
Primary: {{ Primary }}
- name: Extensions
value: "{{ Extensions }}"
description: |
A map with additional attribute extensions for the user. Each map key corresponds to an extension name, while map values represent extension data in Document type (not supported by Java V1, Go V1 and older versions of the CLI). aws:identitystore:enterprise is the only supported extension name.
UPDATE examples
- update_user
Updates the specified user metadata and attributes in the specified identity store.
UPDATE aws.identitystore.users
SET
IdentityStoreId = '{{ IdentityStoreId }}',
UserId = '{{ UserId }}',
Operations = '{{ Operations }}'
WHERE
region = '{{ region }}' --required
AND IdentityStoreId = '{{ IdentityStoreId }}' --required
AND UserId = '{{ UserId }}' --required
AND Operations = '{{ Operations }}' --required;
DELETE examples
- delete_user
Deletes a user within an identity store given UserId.
DELETE FROM aws.identitystore.users
WHERE region = '{{ region }}' --required
;