1. Registry
  2. Packages
  3. Linode Provider
  4. API Docs
  5. getIamUser
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
linode logo linode logo
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi

    Provides IAM information about a Linode user For more information, see the Linode APIv4 docs.

    Example Usage

    The following example shows how one might use this data source to access IAM information about a Linode user.

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const foo = linode.getIamUser({
        username: "foo",
    });
    
    import pulumi
    import pulumi_linode as linode
    
    foo = linode.get_iam_user(username="foo")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v6/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := linode.GetIamUser(ctx, &linode.LookupIamUserArgs{
    			Username: "foo",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Linode.GetIamUser.Invoke(new()
        {
            Username = "foo",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.LinodeFunctions;
    import com.pulumi.linode.inputs.GetIamUserArgs;
    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) {
            final var foo = LinodeFunctions.getIamUser(GetIamUserArgs.builder()
                .username("foo")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          function: linode:getIamUser
          arguments:
            username: foo
    
    pulumi {
      required_providers {
        linode = {
          source = "pulumi/linode"
        }
      }
    }
    
    data "linode_getiamuser" "foo" {
      username = "foo"
    }
    

    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?: InvokeOutputOptions): Output<GetIamUserResult>
    def get_iam_user(username: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetIamUserResult
    def get_iam_user_output(username: pulumi.Input[Optional[str]] = None,
                     opts: Optional[InvokeOutputOptions] = 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 Output<GetIamUserResult> Invoke(GetIamUserInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetIamUserResult> getIamUser(GetIamUserArgs args, InvokeOptions options)
    public static Output<GetIamUserResult> getIamUser(GetIamUserArgs args, InvokeOptions options)
    public static Output<GetIamUserResult> getIamUser(GetIamUserArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: linode:index/getIamUser:getIamUser
      arguments:
        # arguments dictionary
    data "linode_get_iam_user" "name" {
        # arguments
    }

    The following arguments are supported:

    Username string
    The unique username of this User.
    Username string
    The unique username of this User.
    username string
    The unique username of this User.
    username String
    The unique username of this User.
    username string
    The unique username of this User.
    username str
    The unique username of this User.
    username String
    The unique username of this User.

    getIamUser Result

    The following output properties are available:

    AccountAccesses List<string>
    A list of account level roles the user currently has.
    EntityAccesses List<GetIamUserEntityAccess>
    Username string
    AccountAccesses []string
    A list of account level roles the user currently has.
    EntityAccesses []GetIamUserEntityAccess
    Username string
    account_accesses list(string)
    A list of account level roles the user currently has.
    entity_accesses list(object)
    username string
    accountAccesses List<String>
    A list of account level roles the user currently has.
    entityAccesses List<GetIamUserEntityAccess>
    username String
    accountAccesses string[]
    A list of account level roles the user currently has.
    entityAccesses GetIamUserEntityAccess[]
    username string
    account_accesses Sequence[str]
    A list of account level roles the user currently has.
    entity_accesses Sequence[GetIamUserEntityAccess]
    username str
    accountAccesses List<String>
    A list of account level roles the user currently has.
    entityAccesses List<Property Map>
    username String

    Supporting Types

    GetIamUserEntityAccess

    Id int
    The unique ID for the entity.
    Roles List<string>
    A list of the roles for this entity and specific user.
    Type string
    The type of product for the entity. (eg. Volume)
    Id int
    The unique ID for the entity.
    Roles []string
    A list of the roles for this entity and specific user.
    Type string
    The type of product for the entity. (eg. Volume)
    id number
    The unique ID for the entity.
    roles list(string)
    A list of the roles for this entity and specific user.
    type string
    The type of product for the entity. (eg. Volume)
    id Integer
    The unique ID for the entity.
    roles List<String>
    A list of the roles for this entity and specific user.
    type String
    The type of product for the entity. (eg. Volume)
    id number
    The unique ID for the entity.
    roles string[]
    A list of the roles for this entity and specific user.
    type string
    The type of product for the entity. (eg. Volume)
    id int
    The unique ID for the entity.
    roles Sequence[str]
    A list of the roles for this entity and specific user.
    type str
    The type of product for the entity. (eg. Volume)
    id Number
    The unique ID for the entity.
    roles List<String>
    A list of the roles for this entity and specific user.
    type String
    The type of product for the entity. (eg. Volume)

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo linode logo
    Viewing docs for Linode v6.6.0
    published on Tuesday, Sep 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial