published on Monday, Nov 16, 2026 by e-breuninger
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 dictionarydata "netbox_get_group" "name" {
# arguments
}The following arguments are supported:
- Description string
- Id double
- NetBox id.
- 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.
- User
Id double - Id of the user.
- Description string
- Id float64
- NetBox id.
- 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.
- User
Id float64 - Id of the user.
- description string
- id number
- NetBox id.
- 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.
- user_
id number - Id of the user.
- description String
- id Double
- NetBox id.
- 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.
- user
Id Double - Id of the user.
- description string
- id number
- NetBox id.
- 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.
- user
Id number - Id of the user.
- description str
- id float
- NetBox id.
- 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.
- user_
id float - Id of the user.
- description String
- id Number
- NetBox id.
- 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.
- user
Id Number - Id of the user.
getGroup Result
The following output properties are available:
- Description string
- Id double
- NetBox id.
- Name string
- Url string
- User
Count double - Number of users in the group.
- 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.
- User
Id double - Id of the user.
- Description string
- Id float64
- NetBox id.
- Name string
- Url string
- User
Count float64 - Number of users in the group.
- 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.
- User
Id 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_ 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.
- user_
id number - Id of the user.
- description String
- id Double
- NetBox id.
- name String
- url String
- user
Count Double - Number of users in the group.
- 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.
- user
Id Double - 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 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.
- user
Id 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_ 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.
- user_
id float - 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 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.
- user
Id Number - Id of the user.
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