Create a new group
Create a new group in the system.
Authorization Required: Users must have permission to create groups via Cerbos policies.
Notes:
- Group names must be unique across the system
- Names can only contain alphanumeric characters, hyphens, and underscores
- The creating user becomes the group owner
- Group creation is audited and logged
Common Use Cases:
- Creating departmental groups (e.g., “engineering”, “marketing”)
- Setting up project teams with specific access requirements
- Organizing users by geographical location or business unit
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Request model for creating a new group.
Unique name for the group (lowercase letters, numbers, underscores, and colons only)
1 - 100^[a-z0-9_:]+$"engineering_team:backend"
Human-readable description of the group's purpose
1 - 500"Engineering team with access to development resources"
Response
Group created successfully
Response model for group information.
Unique identifier for the group
1
Group name
"engineering_team:backend"
Group description
"Engineering team with access to development resources"
ISO timestamp when the group was created
"2024-01-15T10:30:00Z"
CPF of the user who created this group
"12345678901"
