Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Use this data source to get a list of users in an Identity Store instance.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.ssoadmin.getInstances({});
const exampleGetUsers = example.then(example => aws.identitystore.getUsers({
identityStoreId: example.identityStoreIds?.[0],
}));
import pulumi
import pulumi_aws as aws
example = aws.ssoadmin.get_instances()
example_get_users = aws.identitystore.get_users(identity_store_id=example.identity_store_ids[0])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/identitystore"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssoadmin"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := ssoadmin.GetInstances(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
_, err = identitystore.GetUsers(ctx, &identitystore.GetUsersArgs{
IdentityStoreId: example.IdentityStoreIds[0],
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.SsoAdmin.GetInstances.Invoke();
var exampleGetUsers = Aws.IdentityStore.GetUsers.Invoke(new()
{
IdentityStoreId = example.Apply(getInstancesResult => getInstancesResult.IdentityStoreIds[0]),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssoadmin.SsoadminFunctions;
import com.pulumi.aws.identitystore.IdentitystoreFunctions;
import com.pulumi.aws.identitystore.inputs.GetUsersArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = SsoadminFunctions.getInstances(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
final var exampleGetUsers = IdentitystoreFunctions.getUsers(GetUsersArgs.builder()
.identityStoreId(example.identityStoreIds()[0])
.build());
}
}
variables:
example:
fn::invoke:
function: aws:ssoadmin:getInstances
arguments: {}
exampleGetUsers:
fn::invoke:
function: aws:identitystore:getUsers
arguments:
identityStoreId: ${example.identityStoreIds[0]}
Using getUsers
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUsers(args: GetUsersArgs, opts?: InvokeOptions): Promise<GetUsersResult>
function getUsersOutput(args: GetUsersOutputArgs, opts?: InvokeOptions): Output<GetUsersResult>def get_users(identity_store_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUsersResult
def get_users_output(identity_store_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUsersResult]func GetUsers(ctx *Context, args *GetUsersArgs, opts ...InvokeOption) (*GetUsersResult, error)
func GetUsersOutput(ctx *Context, args *GetUsersOutputArgs, opts ...InvokeOption) GetUsersResultOutput> Note: This function is named GetUsers in the Go SDK.
public static class GetUsers
{
public static Task<GetUsersResult> InvokeAsync(GetUsersArgs args, InvokeOptions? opts = null)
public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
public static Output<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
fn::invoke:
function: aws:identitystore/getUsers:getUsers
arguments:
# arguments dictionaryThe following arguments are supported:
- Identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- Identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- identity
Store StringId - Identity Store ID associated with the Single Sign-On Instance.
- identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- identity_
store_ strid - Identity Store ID associated with the Single Sign-On Instance.
- identity
Store StringId - Identity Store ID associated with the Single Sign-On Instance.
getUsers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Store stringId - Users
List<Get
Users User> - List of Identity Store Users
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Store stringId - Users
[]Get
Users User - List of Identity Store Users
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Store StringId - users
List<Get
Users User> - List of Identity Store Users
- id string
- The provider-assigned unique ID for this managed resource.
- identity
Store stringId - users
Get
Users User[] - List of Identity Store Users
- id str
- The provider-assigned unique ID for this managed resource.
- identity_
store_ strid - users
Sequence[Get
Users User] - List of Identity Store Users
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Store StringId - users List<Property Map>
- List of Identity Store Users
Supporting Types
GetUsersUser
- Addresses
List<Get
Users User Address> - List of details about the user's address.
- Display
Name string - Name that is typically displayed when the user is referenced.
- Emails
List<Get
Users User Email> - List of details about the user's email.
- External
Ids List<GetUsers User External Id> - List of identifiers issued to this resource by an external identity provider.
- Identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- Locale string
- User's geographical region or location.
- Names
List<Get
Users User Name> - Details about the user's full name.
- Nickname string
- An alternate name for the user.
- Phone
Numbers List<GetUsers User Phone Number> - List of details about the user's phone number.
- Preferred
Language string - Preferred language of the user.
- Profile
Url string - An URL that may be associated with the user.
- Timezone string
- User's time zone.
- Title string
- User's title.
- User
Id string - Identifier of the user in the Identity Store.
- User
Name string - User's user name value.
- User
Type string - User type.
- Addresses
[]Get
Users User Address - List of details about the user's address.
- Display
Name string - Name that is typically displayed when the user is referenced.
- Emails
[]Get
Users User Email - List of details about the user's email.
- External
Ids []GetUsers User External Id - List of identifiers issued to this resource by an external identity provider.
- Identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- Locale string
- User's geographical region or location.
- Names
[]Get
Users User Name - Details about the user's full name.
- Nickname string
- An alternate name for the user.
- Phone
Numbers []GetUsers User Phone Number - List of details about the user's phone number.
- Preferred
Language string - Preferred language of the user.
- Profile
Url string - An URL that may be associated with the user.
- Timezone string
- User's time zone.
- Title string
- User's title.
- User
Id string - Identifier of the user in the Identity Store.
- User
Name string - User's user name value.
- User
Type string - User type.
- addresses
List<Get
Users User Address> - List of details about the user's address.
- display
Name String - Name that is typically displayed when the user is referenced.
- emails
List<Get
Users User Email> - List of details about the user's email.
- external
Ids List<GetUsers User External Id> - List of identifiers issued to this resource by an external identity provider.
- identity
Store StringId - Identity Store ID associated with the Single Sign-On Instance.
- locale String
- User's geographical region or location.
- names
List<Get
Users User Name> - Details about the user's full name.
- nickname String
- An alternate name for the user.
- phone
Numbers List<GetUsers User Phone Number> - List of details about the user's phone number.
- preferred
Language String - Preferred language of the user.
- profile
Url String - An URL that may be associated with the user.
- timezone String
- User's time zone.
- title String
- User's title.
- user
Id String - Identifier of the user in the Identity Store.
- user
Name String - User's user name value.
- user
Type String - User type.
- addresses
Get
Users User Address[] - List of details about the user's address.
- display
Name string - Name that is typically displayed when the user is referenced.
- emails
Get
Users User Email[] - List of details about the user's email.
- external
Ids GetUsers User External Id[] - List of identifiers issued to this resource by an external identity provider.
- identity
Store stringId - Identity Store ID associated with the Single Sign-On Instance.
- locale string
- User's geographical region or location.
- names
Get
Users User Name[] - Details about the user's full name.
- nickname string
- An alternate name for the user.
- phone
Numbers GetUsers User Phone Number[] - List of details about the user's phone number.
- preferred
Language string - Preferred language of the user.
- profile
Url string - An URL that may be associated with the user.
- timezone string
- User's time zone.
- title string
- User's title.
- user
Id string - Identifier of the user in the Identity Store.
- user
Name string - User's user name value.
- user
Type string - User type.
- addresses
Sequence[Get
Users User Address] - List of details about the user's address.
- display_
name str - Name that is typically displayed when the user is referenced.
- emails
Sequence[Get
Users User Email] - List of details about the user's email.
- external_
ids Sequence[GetUsers User External Id] - List of identifiers issued to this resource by an external identity provider.
- identity_
store_ strid - Identity Store ID associated with the Single Sign-On Instance.
- locale str
- User's geographical region or location.
- names
Sequence[Get
Users User Name] - Details about the user's full name.
- nickname str
- An alternate name for the user.
- phone_
numbers Sequence[GetUsers User Phone Number] - List of details about the user's phone number.
- preferred_
language str - Preferred language of the user.
- profile_
url str - An URL that may be associated with the user.
- timezone str
- User's time zone.
- title str
- User's title.
- user_
id str - Identifier of the user in the Identity Store.
- user_
name str - User's user name value.
- user_
type str - User type.
- addresses List<Property Map>
- List of details about the user's address.
- display
Name String - Name that is typically displayed when the user is referenced.
- emails List<Property Map>
- List of details about the user's email.
- external
Ids List<Property Map> - List of identifiers issued to this resource by an external identity provider.
- identity
Store StringId - Identity Store ID associated with the Single Sign-On Instance.
- locale String
- User's geographical region or location.
- names List<Property Map>
- Details about the user's full name.
- nickname String
- An alternate name for the user.
- phone
Numbers List<Property Map> - List of details about the user's phone number.
- preferred
Language String - Preferred language of the user.
- profile
Url String - An URL that may be associated with the user.
- timezone String
- User's time zone.
- title String
- User's title.
- user
Id String - Identifier of the user in the Identity Store.
- user
Name String - User's user name value.
- user
Type String - User type.
GetUsersUserAddress
- Country string
- Country that this address is in.
- Formatted string
- Name that is typically displayed when the name is shown for display.
- Locality string
- Address locality.
- Postal
Code string - Postal code of the address.
- Primary bool
- When
true, this is the primary phone number associated with the user. - Region string
- Region of the address.
- Street
Address string - Street of the address.
- Type string
- Type of phone number.
- Country string
- Country that this address is in.
- Formatted string
- Name that is typically displayed when the name is shown for display.
- Locality string
- Address locality.
- Postal
Code string - Postal code of the address.
- Primary bool
- When
true, this is the primary phone number associated with the user. - Region string
- Region of the address.
- Street
Address string - Street of the address.
- Type string
- Type of phone number.
- country String
- Country that this address is in.
- formatted String
- Name that is typically displayed when the name is shown for display.
- locality String
- Address locality.
- postal
Code String - Postal code of the address.
- primary Boolean
- When
true, this is the primary phone number associated with the user. - region String
- Region of the address.
- street
Address String - Street of the address.
- type String
- Type of phone number.
- country string
- Country that this address is in.
- formatted string
- Name that is typically displayed when the name is shown for display.
- locality string
- Address locality.
- postal
Code string - Postal code of the address.
- primary boolean
- When
true, this is the primary phone number associated with the user. - region string
- Region of the address.
- street
Address string - Street of the address.
- type string
- Type of phone number.
- country str
- Country that this address is in.
- formatted str
- Name that is typically displayed when the name is shown for display.
- locality str
- Address locality.
- postal_
code str - Postal code of the address.
- primary bool
- When
true, this is the primary phone number associated with the user. - region str
- Region of the address.
- street_
address str - Street of the address.
- type str
- Type of phone number.
- country String
- Country that this address is in.
- formatted String
- Name that is typically displayed when the name is shown for display.
- locality String
- Address locality.
- postal
Code String - Postal code of the address.
- primary Boolean
- When
true, this is the primary phone number associated with the user. - region String
- Region of the address.
- street
Address String - Street of the address.
- type String
- Type of phone number.
GetUsersUserEmail
GetUsersUserExternalId
GetUsersUserName
- Family
Name string - Family name of the user.
- Formatted string
- Name that is typically displayed when the name is shown for display.
- Given
Name string - Given name of the user.
- Honorific
Prefix string - Honorific prefix of the user.
- Honorific
Suffix string - Honorific suffix of the user.
- Middle
Name string - Middle name of the user.
- Family
Name string - Family name of the user.
- Formatted string
- Name that is typically displayed when the name is shown for display.
- Given
Name string - Given name of the user.
- Honorific
Prefix string - Honorific prefix of the user.
- Honorific
Suffix string - Honorific suffix of the user.
- Middle
Name string - Middle name of the user.
- family
Name String - Family name of the user.
- formatted String
- Name that is typically displayed when the name is shown for display.
- given
Name String - Given name of the user.
- honorific
Prefix String - Honorific prefix of the user.
- honorific
Suffix String - Honorific suffix of the user.
- middle
Name String - Middle name of the user.
- family
Name string - Family name of the user.
- formatted string
- Name that is typically displayed when the name is shown for display.
- given
Name string - Given name of the user.
- honorific
Prefix string - Honorific prefix of the user.
- honorific
Suffix string - Honorific suffix of the user.
- middle
Name string - Middle name of the user.
- family_
name str - Family name of the user.
- formatted str
- Name that is typically displayed when the name is shown for display.
- given_
name str - Given name of the user.
- honorific_
prefix str - Honorific prefix of the user.
- honorific_
suffix str - Honorific suffix of the user.
- middle_
name str - Middle name of the user.
- family
Name String - Family name of the user.
- formatted String
- Name that is typically displayed when the name is shown for display.
- given
Name String - Given name of the user.
- honorific
Prefix String - Honorific prefix of the user.
- honorific
Suffix String - Honorific suffix of the user.
- middle
Name String - Middle name of the user.
GetUsersUserPhoneNumber
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
