1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getUser
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 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(date_joined: Optional[str] = None,
                 email: Optional[str] = None,
                 first_name: Optional[str] = None,
                 group_id: Optional[float] = None,
                 group_name: Optional[str] = None,
                 id: Optional[float] = None,
                 is_active: Optional[bool] = None,
                 is_superuser: Optional[bool] = None,
                 last_login: Optional[str] = None,
                 last_name: Optional[str] = None,
                 notification_group_id: Optional[float] = None,
                 owner_id: Optional[float] = None,
                 owner_name: Optional[str] = None,
                 permission_id: Optional[float] = None,
                 q: Optional[str] = None,
                 username: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetUserResult
    def get_user_output(date_joined: pulumi.Input[Optional[str]] = None,
                 email: pulumi.Input[Optional[str]] = None,
                 first_name: pulumi.Input[Optional[str]] = None,
                 group_id: pulumi.Input[Optional[float]] = None,
                 group_name: pulumi.Input[Optional[str]] = None,
                 id: pulumi.Input[Optional[float]] = None,
                 is_active: pulumi.Input[Optional[bool]] = None,
                 is_superuser: pulumi.Input[Optional[bool]] = None,
                 last_login: pulumi.Input[Optional[str]] = None,
                 last_name: pulumi.Input[Optional[str]] = None,
                 notification_group_id: pulumi.Input[Optional[float]] = None,
                 owner_id: pulumi.Input[Optional[float]] = None,
                 owner_name: pulumi.Input[Optional[str]] = None,
                 permission_id: pulumi.Input[Optional[float]] = None,
                 q: pulumi.Input[Optional[str]] = 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:

    DateJoined string
    When the account was created.
    Email string
    Email address.
    FirstName string
    GroupId double
    Id of the group.
    GroupName string
    Name of the group.
    Id double
    NetBox id.
    IsActive bool
    Whether the user may log in.
    IsSuperuser bool
    Whether is superuser is set.
    LastLogin string
    When the user last logged in; null until the first login.
    LastName string
    NotificationGroupId double
    Id of the notification group.
    OwnerId double
    Id of the owner.
    OwnerName string
    Name of the owner.
    PermissionId double
    Id of the permission.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    Username string
    DateJoined string
    When the account was created.
    Email string
    Email address.
    FirstName string
    GroupId float64
    Id of the group.
    GroupName string
    Name of the group.
    Id float64
    NetBox id.
    IsActive bool
    Whether the user may log in.
    IsSuperuser bool
    Whether is superuser is set.
    LastLogin string
    When the user last logged in; null until the first login.
    LastName string
    NotificationGroupId float64
    Id of the notification group.
    OwnerId float64
    Id of the owner.
    OwnerName string
    Name of the owner.
    PermissionId float64
    Id of the permission.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    Username string
    date_joined string
    When the account was created.
    email string
    Email address.
    first_name string
    group_id number
    Id of the group.
    group_name string
    Name of the group.
    id number
    NetBox id.
    is_active bool
    Whether the user may log in.
    is_superuser bool
    Whether is superuser is set.
    last_login string
    When the user last logged in; null until the first login.
    last_name string
    notification_group_id number
    Id of the notification group.
    owner_id number
    Id of the owner.
    owner_name string
    Name of the owner.
    permission_id number
    Id of the permission.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    username string
    dateJoined String
    When the account was created.
    email String
    Email address.
    firstName String
    groupId Double
    Id of the group.
    groupName String
    Name of the group.
    id Double
    NetBox id.
    isActive Boolean
    Whether the user may log in.
    isSuperuser Boolean
    Whether is superuser is set.
    lastLogin String
    When the user last logged in; null until the first login.
    lastName String
    notificationGroupId Double
    Id of the notification group.
    ownerId Double
    Id of the owner.
    ownerName String
    Name of the owner.
    permissionId Double
    Id of the permission.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    username String
    dateJoined string
    When the account was created.
    email string
    Email address.
    firstName string
    groupId number
    Id of the group.
    groupName string
    Name of the group.
    id number
    NetBox id.
    isActive boolean
    Whether the user may log in.
    isSuperuser boolean
    Whether is superuser is set.
    lastLogin string
    When the user last logged in; null until the first login.
    lastName string
    notificationGroupId number
    Id of the notification group.
    ownerId number
    Id of the owner.
    ownerName string
    Name of the owner.
    permissionId number
    Id of the permission.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    username string
    date_joined str
    When the account was created.
    email str
    Email address.
    first_name str
    group_id float
    Id of the group.
    group_name str
    Name of the group.
    id float
    NetBox id.
    is_active bool
    Whether the user may log in.
    is_superuser bool
    Whether is superuser is set.
    last_login str
    When the user last logged in; null until the first login.
    last_name str
    notification_group_id float
    Id of the notification group.
    owner_id float
    Id of the owner.
    owner_name str
    Name of the owner.
    permission_id float
    Id of the permission.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    username str
    dateJoined String
    When the account was created.
    email String
    Email address.
    firstName String
    groupId Number
    Id of the group.
    groupName String
    Name of the group.
    id Number
    NetBox id.
    isActive Boolean
    Whether the user may log in.
    isSuperuser Boolean
    Whether is superuser is set.
    lastLogin String
    When the user last logged in; null until the first login.
    lastName String
    notificationGroupId Number
    Id of the notification group.
    ownerId Number
    Id of the owner.
    ownerName String
    Name of the owner.
    permissionId Number
    Id of the permission.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    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
    GroupId double
    Id of the group.
    GroupName string
    Name of the group.
    IsSuperuser bool
    Whether is superuser is set.
    NotificationGroupId double
    Id of the notification group.
    OwnerId double
    Id of the owner.
    OwnerName string
    Name of the owner.
    PermissionId double
    Id of the permission.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    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
    GroupId float64
    Id of the group.
    GroupName string
    Name of the group.
    IsSuperuser bool
    Whether is superuser is set.
    NotificationGroupId float64
    Id of the notification group.
    OwnerId float64
    Id of the owner.
    OwnerName string
    Name of the owner.
    PermissionId float64
    Id of the permission.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    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
    group_id number
    Id of the group.
    group_name string
    Name of the group.
    is_superuser bool
    Whether is superuser is set.
    notification_group_id number
    Id of the notification group.
    owner_id number
    Id of the owner.
    owner_name string
    Name of the owner.
    permission_id number
    Id of the permission.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    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
    groupId Double
    Id of the group.
    groupName String
    Name of the group.
    isSuperuser Boolean
    Whether is superuser is set.
    notificationGroupId Double
    Id of the notification group.
    ownerId Double
    Id of the owner.
    ownerName String
    Name of the owner.
    permissionId Double
    Id of the permission.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    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
    groupId number
    Id of the group.
    groupName string
    Name of the group.
    isSuperuser boolean
    Whether is superuser is set.
    notificationGroupId number
    Id of the notification group.
    ownerId number
    Id of the owner.
    ownerName string
    Name of the owner.
    permissionId number
    Id of the permission.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    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
    group_id float
    Id of the group.
    group_name str
    Name of the group.
    is_superuser bool
    Whether is superuser is set.
    notification_group_id float
    Id of the notification group.
    owner_id float
    Id of the owner.
    owner_name str
    Name of the owner.
    permission_id float
    Id of the permission.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    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
    groupId Number
    Id of the group.
    groupName String
    Name of the group.
    isSuperuser Boolean
    Whether is superuser is set.
    notificationGroupId Number
    Id of the notification group.
    ownerId Number
    Id of the owner.
    ownerName String
    Name of the owner.
    permissionId Number
    Id of the permission.
    q String
    Search term, matched against the fields NetBox searches for this object type.

    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.1
    published on Monday, Nov 16, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial