1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getGroup
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 user group (users.group).

    From the official documentation:

    A group is a collection of users which share a common set of permissions. Assigning object permissions to a group, rather than to individual users, simplifies the administration of permissions for related users (e.g. members of a particular team).

    A user inherits the union of all permissions assigned to each group of which they are a member, in addition to any permissions assigned directly to the user.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getGroup({
        name: "test-group",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_group(name="test-group")
    
    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.LookupGroup(ctx, &netbox.LookupGroupArgs{
    			Name: pulumi.StringRef("test-group"),
    		}, 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.GetGroup.Invoke(new()
        {
            Name = "test-group",
        });
    
    });
    
    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.GetGroupArgs;
    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.getGroup(GetGroupArgs.builder()
                .name("test-group")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getGroup
          arguments:
            name: test-group
    
    Example coming soon!
    

    Using getGroup

    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 getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>
    function getGroupOutput(args: GetGroupOutputArgs, opts?: InvokeOutputOptions): Output<GetGroupResult>
    def get_group(description: Optional[str] = None,
                  id: Optional[float] = None,
                  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,
                  user_id: Optional[float] = None,
                  opts: Optional[InvokeOptions] = None) -> GetGroupResult
    def get_group_output(description: pulumi.Input[Optional[str]] = None,
                  id: pulumi.Input[Optional[float]] = None,
                  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,
                  user_id: pulumi.Input[Optional[float]] = None,
                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetGroupResult]
    func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)
    func LookupGroupOutput(ctx *Context, args *LookupGroupOutputArgs, opts ...InvokeOption) LookupGroupResultOutput

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

    public static class GetGroup 
    {
        public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetGroupResult> Invoke(GetGroupInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetGroupResult> Invoke(GetGroupInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
    public static Output<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
    public static Output<GetGroupResult> getGroup(GetGroupArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getGroup:getGroup
      arguments:
        # arguments dictionary
    data "netbox_get_group" "name" {
        # arguments
    }

    The following arguments are supported:

    Description string
    Id double
    NetBox id.
    Name 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.
    UserId double
    Id of the user.
    Description string
    Id float64
    NetBox id.
    Name 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.
    UserId float64
    Id of the user.
    description string
    id number
    NetBox id.
    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.
    user_id number
    Id of the user.
    description String
    id Double
    NetBox id.
    name 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.
    userId Double
    Id of the user.
    description string
    id number
    NetBox id.
    name 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.
    userId number
    Id of the user.
    description str
    id float
    NetBox id.
    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.
    user_id float
    Id of the user.
    description String
    id Number
    NetBox id.
    name 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.
    userId Number
    Id of the user.

    getGroup Result

    The following output properties are available:

    Description string
    Id double
    NetBox id.
    Name string
    Url string
    UserCount double
    Number of users in the group.
    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.
    UserId double
    Id of the user.
    Description string
    Id float64
    NetBox id.
    Name string
    Url string
    UserCount float64
    Number of users in the group.
    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.
    UserId float64
    Id of the user.
    description string
    id number
    NetBox id.
    name string
    url string
    user_count number
    Number of users in the group.
    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.
    user_id number
    Id of the user.
    description String
    id Double
    NetBox id.
    name String
    url String
    userCount Double
    Number of users in the group.
    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.
    userId Double
    Id of the user.
    description string
    id number
    NetBox id.
    name string
    url string
    userCount number
    Number of users in the group.
    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.
    userId number
    Id of the user.
    description str
    id float
    NetBox id.
    name str
    url str
    user_count float
    Number of users in the group.
    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.
    user_id float
    Id of the user.
    description String
    id Number
    NetBox id.
    name String
    url String
    userCount Number
    Number of users in the group.
    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.
    userId Number
    Id of the user.

    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