1. Packages
  2. Packages
  3. Scaleway
  4. API Docs
  5. getIamUser
Viewing docs for Scaleway v1.50.0
published on Tuesday, Jun 2, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.50.0
published on Tuesday, Jun 2, 2026 by pulumiverse
    Deprecated: scaleway.index/getiamuser.getIamUser has been deprecated in favor of scaleway.iam/getuser.getUser

    Use this data source to get information on an existing IAM user based on its ID or email address. For more information refer to the IAM API documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    // Get info by user id
    const findById = scaleway.iam.getUser({
        userId: "11111111-1111-1111-1111-111111111111",
    });
    // Get info by email address
    const findByEmail = scaleway.iam.getUser({
        email: "foo@bar.com",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    # Get info by user id
    find_by_id = scaleway.iam.get_user(user_id="11111111-1111-1111-1111-111111111111")
    # Get info by email address
    find_by_email = scaleway.iam.get_user(email="foo@bar.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/iam"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Get info by user id
    		_, err := iam.LookupUser(ctx, &iam.LookupUserArgs{
    			UserId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Get info by email address
    		_, err = iam.LookupUser(ctx, &iam.LookupUserArgs{
    			Email: pulumi.StringRef("foo@bar.com"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        // Get info by user id
        var findById = Scaleway.Iam.GetUser.Invoke(new()
        {
            UserId = "11111111-1111-1111-1111-111111111111",
        });
    
        // Get info by email address
        var findByEmail = Scaleway.Iam.GetUser.Invoke(new()
        {
            Email = "foo@bar.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.iam.IamFunctions;
    import com.pulumi.scaleway.iam.inputs.GetUserArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            // Get info by user id
            final var findById = IamFunctions.getUser(GetUserArgs.builder()
                .userId("11111111-1111-1111-1111-111111111111")
                .build());
    
            // Get info by email address
            final var findByEmail = IamFunctions.getUser(GetUserArgs.builder()
                .email("foo@bar.com")
                .build());
    
        }
    }
    
    variables:
      # Get info by user id
      findById:
        fn::invoke:
          function: scaleway:iam:getUser
          arguments:
            userId: 11111111-1111-1111-1111-111111111111
      # Get info by email address
      findByEmail:
        fn::invoke:
          function: scaleway:iam:getUser
          arguments:
            email: foo@bar.com
    
    Example coming soon!
    

    Using getIamUser

    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 getIamUser(args: GetIamUserArgs, opts?: InvokeOptions): Promise<GetIamUserResult>
    function getIamUserOutput(args: GetIamUserOutputArgs, opts?: InvokeOptions): Output<GetIamUserResult>
    def get_iam_user(email: Optional[str] = None,
                     organization_id: Optional[str] = None,
                     tags: Optional[Sequence[str]] = None,
                     user_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetIamUserResult
    def get_iam_user_output(email: pulumi.Input[Optional[str]] = None,
                     organization_id: pulumi.Input[Optional[str]] = None,
                     tags: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                     user_id: pulumi.Input[Optional[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetIamUserResult]
    func LookupIamUser(ctx *Context, args *LookupIamUserArgs, opts ...InvokeOption) (*LookupIamUserResult, error)
    func LookupIamUserOutput(ctx *Context, args *LookupIamUserOutputArgs, opts ...InvokeOption) LookupIamUserResultOutput

    > Note: This function is named LookupIamUser in the Go SDK.

    public static class GetIamUser 
    {
        public static Task<GetIamUserResult> InvokeAsync(GetIamUserArgs args, InvokeOptions? opts = null)
        public static Output<GetIamUserResult> Invoke(GetIamUserInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamUserResult> getIamUser(GetIamUserArgs args, InvokeOptions options)
    public static Output<GetIamUserResult> getIamUser(GetIamUserArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:index/getIamUser:getIamUser
      arguments:
        # arguments dictionary
    data "scaleway_getiamuser" "name" {
        # arguments
    }

    The following arguments are supported:

    Email string
    The email address of the IAM user.
    OrganizationId string
    organizationId) The ID of the organization the user is associated with.
    Tags List<string>
    The tags associated with the user.
    UserId string

    The ID of the IAM user.

    Note You must specify at least one: email and/or userId.

    Email string
    The email address of the IAM user.
    OrganizationId string
    organizationId) The ID of the organization the user is associated with.
    Tags []string
    The tags associated with the user.
    UserId string

    The ID of the IAM user.

    Note You must specify at least one: email and/or userId.

    email string
    The email address of the IAM user.
    organization_id string
    organizationId) The ID of the organization the user is associated with.
    tags list(string)
    The tags associated with the user.
    user_id string

    The ID of the IAM user.

    Note You must specify at least one: email and/or userId.

    email String
    The email address of the IAM user.
    organizationId String
    organizationId) The ID of the organization the user is associated with.
    tags List<String>
    The tags associated with the user.
    userId String

    The ID of the IAM user.

    Note You must specify at least one: email and/or userId.

    email string
    The email address of the IAM user.
    organizationId string
    organizationId) The ID of the organization the user is associated with.
    tags string[]
    The tags associated with the user.
    userId string

    The ID of the IAM user.

    Note You must specify at least one: email and/or userId.

    email str
    The email address of the IAM user.
    organization_id str
    organizationId) The ID of the organization the user is associated with.
    tags Sequence[str]
    The tags associated with the user.
    user_id str

    The ID of the IAM user.

    Note You must specify at least one: email and/or userId.

    email String
    The email address of the IAM user.
    organizationId String
    organizationId) The ID of the organization the user is associated with.
    tags List<String>
    The tags associated with the user.
    userId String

    The ID of the IAM user.

    Note You must specify at least one: email and/or userId.

    getIamUser Result

    The following output properties are available:

    AccountRootUserId string
    CreatedAt string
    Deletable bool
    FirstName string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastLoginAt string
    LastName string
    Locale string
    Locked bool
    Mfa bool
    Password string
    PasswordWo string
    PasswordWoVersion int
    PhoneNumber string
    SendPasswordEmail bool
    SendWelcomeEmail bool
    Status string
    Type string
    UpdatedAt string
    Username string
    Email string
    OrganizationId string
    Tags List<string>
    The tags associated with the user.
    UserId string
    AccountRootUserId string
    CreatedAt string
    Deletable bool
    FirstName string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastLoginAt string
    LastName string
    Locale string
    Locked bool
    Mfa bool
    Password string
    PasswordWo string
    PasswordWoVersion int
    PhoneNumber string
    SendPasswordEmail bool
    SendWelcomeEmail bool
    Status string
    Type string
    UpdatedAt string
    Username string
    Email string
    OrganizationId string
    Tags []string
    The tags associated with the user.
    UserId string
    account_root_user_id string
    created_at string
    deletable bool
    first_name string
    id string
    The provider-assigned unique ID for this managed resource.
    last_login_at string
    last_name string
    locale string
    locked bool
    mfa bool
    password string
    password_wo string
    password_wo_version number
    phone_number string
    send_password_email bool
    send_welcome_email bool
    status string
    type string
    updated_at string
    username string
    email string
    organization_id string
    tags list(string)
    The tags associated with the user.
    user_id string
    accountRootUserId String
    createdAt String
    deletable Boolean
    firstName String
    id String
    The provider-assigned unique ID for this managed resource.
    lastLoginAt String
    lastName String
    locale String
    locked Boolean
    mfa Boolean
    password String
    passwordWo String
    passwordWoVersion Integer
    phoneNumber String
    sendPasswordEmail Boolean
    sendWelcomeEmail Boolean
    status String
    type String
    updatedAt String
    username String
    email String
    organizationId String
    tags List<String>
    The tags associated with the user.
    userId String
    accountRootUserId string
    createdAt string
    deletable boolean
    firstName string
    id string
    The provider-assigned unique ID for this managed resource.
    lastLoginAt string
    lastName string
    locale string
    locked boolean
    mfa boolean
    password string
    passwordWo string
    passwordWoVersion number
    phoneNumber string
    sendPasswordEmail boolean
    sendWelcomeEmail boolean
    status string
    type string
    updatedAt string
    username string
    email string
    organizationId string
    tags string[]
    The tags associated with the user.
    userId string
    account_root_user_id str
    created_at str
    deletable bool
    first_name str
    id str
    The provider-assigned unique ID for this managed resource.
    last_login_at str
    last_name str
    locale str
    locked bool
    mfa bool
    password str
    password_wo str
    password_wo_version int
    phone_number str
    send_password_email bool
    send_welcome_email bool
    status str
    type str
    updated_at str
    username str
    email str
    organization_id str
    tags Sequence[str]
    The tags associated with the user.
    user_id str
    accountRootUserId String
    createdAt String
    deletable Boolean
    firstName String
    id String
    The provider-assigned unique ID for this managed resource.
    lastLoginAt String
    lastName String
    locale String
    locked Boolean
    mfa Boolean
    password String
    passwordWo String
    passwordWoVersion Number
    phoneNumber String
    sendPasswordEmail Boolean
    sendWelcomeEmail Boolean
    status String
    type String
    updatedAt String
    username String
    email String
    organizationId String
    tags List<String>
    The tags associated with the user.
    userId String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Viewing docs for Scaleway v1.50.0
    published on Tuesday, Jun 2, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial