1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getUser
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger

    A NetBox user (users.user).

    From the official documentation:

    A user represents an individual account in NetBox. Users authenticate to access the application, and may be granted permissions either directly or through their assigned groups. Each user can hold one or more API tokens for use with the REST and GraphQL APIs.

    NetBox extends Django’s stock user model to support multiple API tokens per user, configurable object permissions, and integration with remote authentication backends.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getUser({
        id: 123,
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_user(id=123)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := netbox.LookupUser(ctx, &netbox.LookupUserArgs{
    			Id: pulumi.Float64Ref(123),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Netbox = Pulumi.Netbox;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Netbox.GetUser.Invoke(new()
        {
            Id = 123,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.NetboxFunctions;
    import com.pulumi.netbox.inputs.GetUserArgs;
    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 test = NetboxFunctions.getUser(GetUserArgs.builder()
                .id(123)
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getUser
          arguments:
            id: 123
    
    Example coming soon!
    

    Using getUser

    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 getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
    function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOutputOptions): Output<GetUserResult>
    def get_user(id: Optional[float] = None,
                 username: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetUserResult
    def get_user_output(id: pulumi.Input[Optional[float]] = None,
                 username: pulumi.Input[Optional[str]] = None,
                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetUserResult]
    func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
    func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput

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

    public static class GetUser 
    {
        public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
        public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
    public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
    public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getUser:getUser
      arguments:
        # arguments dictionary
    data "netbox_get_user" "name" {
        # arguments
    }

    The following arguments are supported:

    Id double
    NetBox id.
    Username string
    Id float64
    NetBox id.
    Username string
    id number
    NetBox id.
    username string
    id Double
    NetBox id.
    username String
    id number
    NetBox id.
    username string
    id float
    NetBox id.
    username str
    id Number
    NetBox id.
    username String

    getUser Result

    The following output properties are available:

    Active bool
    Deprecated alias of is_active.

    Deprecated: Deprecated

    DateJoined string
    When the account was created.
    Email string
    Email address.
    FirstName string
    GroupIds List<double>
    Ids of the groups the user belongs to.
    Id double
    NetBox id.
    IsActive bool
    Whether the user may log in.
    LastLogin string
    When the user last logged in; null until the first login.
    LastName string
    Password string
    Url string
    Username string
    Active bool
    Deprecated alias of is_active.

    Deprecated: Deprecated

    DateJoined string
    When the account was created.
    Email string
    Email address.
    FirstName string
    GroupIds []float64
    Ids of the groups the user belongs to.
    Id float64
    NetBox id.
    IsActive bool
    Whether the user may log in.
    LastLogin string
    When the user last logged in; null until the first login.
    LastName string
    Password string
    Url string
    Username string
    active bool
    Deprecated alias of is_active.

    Deprecated: Deprecated

    date_joined string
    When the account was created.
    email string
    Email address.
    first_name string
    group_ids list(number)
    Ids of the groups the user belongs to.
    id number
    NetBox id.
    is_active bool
    Whether the user may log in.
    last_login string
    When the user last logged in; null until the first login.
    last_name string
    password string
    url string
    username string
    active Boolean
    Deprecated alias of is_active.

    Deprecated: Deprecated

    dateJoined String
    When the account was created.
    email String
    Email address.
    firstName String
    groupIds List<Double>
    Ids of the groups the user belongs to.
    id Double
    NetBox id.
    isActive Boolean
    Whether the user may log in.
    lastLogin String
    When the user last logged in; null until the first login.
    lastName String
    password String
    url String
    username String
    active boolean
    Deprecated alias of is_active.

    Deprecated: Deprecated

    dateJoined string
    When the account was created.
    email string
    Email address.
    firstName string
    groupIds number[]
    Ids of the groups the user belongs to.
    id number
    NetBox id.
    isActive boolean
    Whether the user may log in.
    lastLogin string
    When the user last logged in; null until the first login.
    lastName string
    password string
    url string
    username string
    active bool
    Deprecated alias of is_active.

    Deprecated: Deprecated

    date_joined str
    When the account was created.
    email str
    Email address.
    first_name str
    group_ids Sequence[float]
    Ids of the groups the user belongs to.
    id float
    NetBox id.
    is_active bool
    Whether the user may log in.
    last_login str
    When the user last logged in; null until the first login.
    last_name str
    password str
    url str
    username str
    active Boolean
    Deprecated alias of is_active.

    Deprecated: Deprecated

    dateJoined String
    When the account was created.
    email String
    Email address.
    firstName String
    groupIds List<Number>
    Ids of the groups the user belongs to.
    id Number
    NetBox id.
    isActive Boolean
    Whether the user may log in.
    lastLogin String
    When the user last logged in; null until the first login.
    lastName String
    password String
    url String
    username String

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.0
    published on Wednesday, Nov 4, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial