1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getUsers
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

    Lists user objects matching the given filters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getUsers({
        limit: 10,
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_users(limit=10)
    
    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.GetUsers(ctx, &netbox.GetUsersArgs{
    			Limit: pulumi.Float64Ref(10),
    		}, 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.GetUsers.Invoke(new()
        {
            Limit = 10,
        });
    
    });
    
    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.GetUsersArgs;
    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.getUsers(GetUsersArgs.builder()
                .limit(10)
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getUsers
          arguments:
            limit: 10
    
    Example coming soon!
    

    Using getUsers

    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 getUsers(args: GetUsersArgs, opts?: InvokeOptions): Promise<GetUsersResult>
    function getUsersOutput(args: GetUsersOutputArgs, opts?: InvokeOutputOptions): Output<GetUsersResult>
    def get_users(filters: Optional[Sequence[GetUsersFilter]] = None,
                  limit: Optional[float] = None,
                  opts: Optional[InvokeOptions] = None) -> GetUsersResult
    def get_users_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetUsersFilterArgs]]]] = None,
                  limit: pulumi.Input[Optional[float]] = None,
                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetUsersResult]
    func GetUsers(ctx *Context, args *GetUsersArgs, opts ...InvokeOption) (*GetUsersResult, error)
    func GetUsersOutput(ctx *Context, args *GetUsersOutputArgs, opts ...InvokeOption) GetUsersResultOutput

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

    public static class GetUsers 
    {
        public static Task<GetUsersResult> InvokeAsync(GetUsersArgs args, InvokeOptions? opts = null)
        public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
    public static Output<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
    public static Output<GetUsersResult> getUsers(GetUsersArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getUsers:getUsers
      arguments:
        # arguments dictionary
    data "netbox_get_users" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetUsersFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Filters []GetUsersFilter
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<GetUsersFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters GetUsersFilter[]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters Sequence[GetUsersFilter]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    getUsers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Users List<GetUsersUser>
    The matching users.
    Filters List<GetUsersFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Id string
    The provider-assigned unique ID for this managed resource.
    Users []GetUsersUser
    The matching users.
    Filters []GetUsersFilter
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    users list(object)
    The matching users.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    users List<GetUsersUser>
    The matching users.
    filters List<GetUsersFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    users GetUsersUser[]
    The matching users.
    filters GetUsersFilter[]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id str
    The provider-assigned unique ID for this managed resource.
    users Sequence[GetUsersUser]
    The matching users.
    filters Sequence[GetUsersFilter]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    users List<Property Map>
    The matching users.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. Repeating a name sends that parameter once per value.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    Supporting Types

    GetUsersFilter

    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name str
    Name of the query filter (the API list parameter).
    value str
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.

    GetUsersUser

    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