published on Monday, Nov 16, 2026 by e-breuninger
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 dictionarydata "netbox_get_user" "name" {
# arguments
}The following arguments are supported:
- Date
Joined string - When the account was created.
- Email string
- Email address.
- First
Name string - Group
Id double - Id of the group.
- Group
Name string - Name of the group.
- Id double
- 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 doubleId - Id of the notification group.
- Owner
Id double - Id of the owner.
- Owner
Name string - Name of the owner.
- Permission
Id double - 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 float64 - Id of the group.
- Group
Name string - Name of the group.
- Id float64
- 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 float64Id - Id of the notification group.
- Owner
Id float64 - Id of the owner.
- Owner
Name string - Name of the owner.
- Permission
Id 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_ numberid - 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
- date
Joined String - When the account was created.
- email String
- Email address.
- first
Name String - group
Id Double - Id of the group.
- group
Name String - Name of the group.
- id Double
- NetBox id.
- is
Active Boolean - Whether the user may log in.
- is
Superuser Boolean - Whether is superuser is set.
- last
Login String - When the user last logged in; null until the first login.
- last
Name String - notification
Group DoubleId - Id of the notification group.
- owner
Id Double - Id of the owner.
- owner
Name String - Name of the owner.
- permission
Id Double - 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 boolean - Whether the user may log in.
- is
Superuser boolean - Whether is superuser is set.
- last
Login string - When the user last logged in; null until the first login.
- last
Name string - notification
Group numberId - 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
- 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_ floatid - 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
- 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 Boolean - Whether the user may log in.
- is
Superuser Boolean - Whether is superuser is set.
- last
Login String - When the user last logged in; null until the first login.
- last
Name String - notification
Group NumberId - 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
getUser Result
The following output properties are available:
- Active bool
- Deprecated alias of is_active.
- Date
Joined string - When the account was created.
- Email string
- Email address.
- First
Name string - Group
Ids List<double> - Ids of the groups the user belongs to.
- Id double
- 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 double - Id of the group.
- Group
Name string - Name of the group.
- Is
Superuser bool - Whether is superuser is set.
- Notification
Group doubleId - Id of the notification group.
- Owner
Id double - Id of the owner.
- Owner
Name string - Name of the owner.
- Permission
Id 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.
- Date
Joined string - When the account was created.
- Email string
- Email address.
- First
Name string - Group
Ids []float64 - Ids of the groups the user belongs to.
- Id float64
- 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 float64 - Id of the group.
- Group
Name string - Name of the group.
- Is
Superuser bool - Whether is superuser is set.
- Notification
Group float64Id - Id of the notification group.
- Owner
Id float64 - Id of the owner.
- Owner
Name string - Name of the owner.
- Permission
Id 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.
- 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_ numberid - 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.
- date
Joined String - When the account was created.
- email String
- Email address.
- first
Name String - group
Ids List<Double> - Ids of the groups the user belongs to.
- id Double
- NetBox id.
- is
Active Boolean - 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 Double - Id of the group.
- group
Name String - Name of the group.
- is
Superuser Boolean - Whether is superuser is set.
- notification
Group DoubleId - Id of the notification group.
- owner
Id Double - Id of the owner.
- owner
Name String - Name of the owner.
- permission
Id 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.
- date
Joined string - When the account was created.
- email string
- Email address.
- first
Name string - group
Ids number[] - Ids of the groups the user belongs to.
- id number
- NetBox id.
- is
Active boolean - 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 boolean - Whether is superuser is set.
- notification
Group numberId - 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 bool
- Deprecated alias of is_active.
- 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_ floatid - 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.
- 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 Boolean - 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 Boolean - Whether is superuser is set.
- notification
Group NumberId - 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.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
published on Monday, Nov 16, 2026 by e-breuninger