published on Wednesday, Nov 4, 2026 by e-breuninger
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 dictionarydata "netbox_get_user" "name" {
# arguments
}The following arguments are supported:
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
- 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
- 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
- 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
- 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
- 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
- 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
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
published on Wednesday, Nov 4, 2026 by e-breuninger