Create a group
Create a Standard group when you want to hand-pick the objects it contains.
Which type of group?
This page covers Standard groups (CoreStandardGroup). Generator groups and Query groups are created by the Generator or query that owns them — see the Groups overview for when to use each type.
Prerequisites​
- Access to an Infrahub instance.
- Permission to create groups on the target branch.
Create the group​
- Web Interface
- GraphQL
- Python SDK
Navigate to Object Management → Groups and click New Group. Provide:
- A name (for example
prod-fabric-devices). - An optional description.
- The group type (
CoreStandardGroup).
mutation CreateGroup {
CoreStandardGroupCreate(data: {name: {value: "<group-name>"}}) {
ok
object {
hfid
}
}
}
Save the returned hfid — you'll need it when adding members.
from infrahub_sdk import InfrahubClientSync
client = InfrahubClientSync(address="http://localhost:8000")
group = client.create(
kind="CoreStandardGroup",
name="<group-name>",
)
group.save()
Troubleshooting​
Create returns a permission error. Check your permissions for group management on the target branch.
The group was created but doesn't appear in the UI. The group may be in another branch, or you may be viewing with "internal groups" filtered out. See the visibility model.
Next​
- Add members to the group
- Delete a group if it was created by mistake