Table: aws_identitystore_user - Query AWS Identity Store User using SQL
The AWS Identity Store User is a resource in AWS Identity Store that allows you to manage user identities. It provides a unified view of users and groups across AWS SSO and AWS Managed Microsoft AD, helping you to simplify identity management. It also enables you to perform identity-based actions in your AWS environment, enhancing the security and governance of your resources.
Table Usage Guide
The aws_identitystore_user
table in Steampipe provides you with information about users within the AWS Identity Store. This table allows you, as a DevOps engineer, to query user-specific details, including user ID, username, and ARN. You can utilize this table to manage and audit user information, such as user identities, associated roles, and permissions. The schema outlines the various attributes of the user for you, including the user ID, ARN, username, and status.
Examples
Get user by ID
Explore which user is associated with a specific ID in the AWS Identity Store. This is useful to validate user identities and ensure appropriate access controls are in place.
select id, namefrom aws_identitystore_userwhere identity_store_id = 'd-1234567890' and id = '1234567890-12345678-abcd-abcd-abcd-1234567890ab';
select id, namefrom aws_identitystore_userwhere identity_store_id = 'd-1234567890' and id = '1234567890-12345678-abcd-abcd-abcd-1234567890ab';
List users by name
Determine the areas in which specific users are identified within a particular identity store. This is useful for pinpointing the presence and details of specific users within a given identity store, to manage and track user data.
select id, namefrom aws_identitystore_userwhere identity_store_id = 'd-1234567890' and name = 'test';
select id, namefrom aws_identitystore_userwhere identity_store_id = 'd-1234567890' and name = 'test';
Schema for aws_identitystore_user
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The AWS Account ID in which the resource is located. |
addresses | jsonb | A list of Address objects containing addresses associated with the user. | |
display_name | text | A string containing the name of the user that is formatted for display when the user is referenced. | |
emails | jsonb | A list of Email objects containing email addresses associated with the user. | |
external_ids | jsonb | A list of ExternalId objects that contains the identifiers issued to this resource by an external identity provider. | |
id | text | = | The identifier for a user in the identity store. |
identity_store_id | text | = | The globally unique identifier for the identity store. |
locale | text | A string containing the geographical region or location of the user. | |
name | text | Contains the user’s display name value. | |
nick_name | text | A string containing an alternate name for the user. | |
partition | text | The AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov). | |
phone_numbers | jsonb | A list of PhoneNumber objects containing phone numbers associated with the user. | |
preferred_language | text | A string containing the preferred language of the user. | |
profile_url | text | A string containing a URL that might be associated with the user. | |
region | text | The AWS Region in which the resource is located. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
timezone | text | A string containing the time zone of the user. | |
title | text | Title of the resource. | |
user_type | text | A string indicating the type of user. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- aws
You can pass the configuration to the command with the --config
argument:
steampipe_export_aws --config '<your_config>' aws_identitystore_user