Forgecroft Docs
Guides / Teams

Managing Teams

Organize users into teams for approval workflows and access grants.

What Are Teams?

Teams group users together for:

Creating a Team

POST /teams
{
  "name": "Platform Team",
  "description": "Manages production infrastructure"
}

Requires org owner or admin role.

Team Management

FieldTypeDescription
namestringTeam name
descriptionstringHuman-readable description
managed_bystringmanual (created in Forgecroft) or idp (synced from identity provider)

Adding Members

POST /teams/{id}/members
{
  "user_id": "user-uuid"
}

The user must already be a member of the org. The operation is idempotent — adding an existing member is a no-op.

Removing Members

DELETE /teams/{id}/members/{userId}

IdP-Managed Teams

Teams synced from an identity provider (Okta, Azure AD, etc.) have managed_by: "idp". These teams:

Only edit IdP-managed teams through your identity provider.

Using Teams in Governance

Teams are used in approval rules:

{
  "name": "platform-approval",
  "approver_type": "team",
  "approver_id": "team-uuid",
  "min_approvals": 1,
  "condition": { "type": "destroyed_gt", "value": 0 }
}

And in access grants:

{
  "subject_type": "team",
  "subject_id": "team-uuid",
  "verb": "read",
  "resource_type": "workspace",
  "resource_id": "workspace-uuid"
}