User Groups

Apply monthly usage limits and model access overrides to every member of an identity provider group across the organizations you choose.

User Groups lets enterprise admins manage Factory settings by the groups that already exist in your identity provider (IdP). Configure a group once, choose the organizations it applies to, and every member of that group picks up the setting. Membership stays in your IdP: when someone joins or leaves a group there, their Factory settings follow.

A group can carry two settings:

  • Monthly usage limit: a credit limit for each member.
  • Model access: models to allow or block for members, on top of each organization's model policy.

Before you start

  • You are an Owner of the enterprise root organization. User Groups is an Admin Console page, so local organization admins and sub-organization owners do not see it.
  • Directory Sync is configured under Security & Identity.
  • The groups you want to use are assigned to the Factory application in your IdP and have completed at least one sync.

Until the first sync completes, the page shows No groups synced from your identity provider with a shortcut to set up Directory Sync.

How group usage limits resolve

Every user's effective monthly limit comes from three tiers. The first tier that is set wins.

OrderTierApplies when
1Individual overrideAn admin set a limit for this specific user.
2Group limitThe user belongs to at least one group with a limit in this organization. If they belong to several, the highest group limit applies.
3Global user limitNeither of the above is set. Without a global limit, usage is unlimited.

A few consequences of this order:

  • A group limit replaces the global user limit, so it can be lower or higher than the global limit.
  • An individual override always wins, even when it is lower than the user's group limit. Use it for exceptions.
  • Belonging to more groups never lowers a user's limit. The most generous mapped group applies.
  • Group limits apply per organization. A group can have a limit in one organization and none in another.

Limits are resolved when a request is made. Saving, changing, or removing a group limit writes nothing to individual users. Members pick up the change on their next request.

How group model access resolves

Model access works model by model. Each model in a group's configuration is set to Allow, Block, or left unset. A user's effective access to a model comes from three layers, and each layer that sets the model overrides the one before it.

OrderLayerEffect
1Organization model policyThe allowlist or blocklist set in Enterprise Controls. This is the starting point.
2Group model accessModels that the user's groups allow or block in this organization override the organization policy.
3Individual model overrideModels an admin allowed or blocked for this specific user override both of the above.

A few consequences of this order:

  • A model that no layer sets follows the organization policy. A model that a user's individual override leaves unset follows their groups.
  • A group can grant a model the organization policy blocks, or block a model the organization policy allows.
  • When a user belongs to several groups with model access, a model any of those groups allows is allowed. A model is blocked only when every one of those groups blocks it. Groups with no model access configured do not take part.
  • An individual override always wins. Use it to block a model for one member of a group that allows it, or to allow a model their groups block.
  • Group model access does not bypass models that require an explicit high-cost opt-in by an admin, and it does not change other organization settings such as custom model access or Require BYOK in Auto Model.
  • Group model access applies per organization. A group can allow a model in one organization and leave another organization's policy unchanged.

Droid uses the same resolved policy for the model selector and for enforcement on every model request. When a group or individual override blocks a model, the request is rejected with a message that the model has been restricted for that user.

Configure a group

  1. 1
    Open User Groups

    In settings, open Admin Console → User Groups. The list shows every synced group with its current configuration, including its usage limit and a model access summary such as 2 allowed, 1 blocked.

  2. 2
    Set the monthly usage limit

    Select the edit button on a group's row to open Configure for that group. Under Monthly usage limit, enter the limit per member in millions of credits. For example, 50 means 50,000,000 credits per member each month. Leave it blank if the group should only change model access.

  3. 3
    Set model access

    Select Next. Under Model access, search for a model and choose Allow or Block for it. Leave a model unset to keep each organization's policy for it. Clear all removes every model override from the draft.

  4. 4
    Choose organizations

    Select Next, then check each organization where the configuration should apply. The root organization is selected by default for a new configuration. If your enterprise has only one organization, this step is skipped and the configuration applies to the root.

  5. 5
    Review and save

    A group needs a usage limit, at least one model override, or both before it can be saved. If the save changes an existing configuration, a warning lists each organization whose limit or model access changes or is removed. Review it, then select Save.

One save applies the same limit and model access to every selected organization. Organizations you leave unchecked lose any configuration this group had there. Members in those organizations fall back to their individual override or global limit, and to the organization model policy plus any individual model override.

When a group's configuration differs across organizations (for example, because limits were set through the API), the list shows Varies by organization, with the range for usage limits, such as 20M to 50M credits per member each month. Opening the group starts that setting empty, so the next save sets one value for every selected organization.

Note

If the Model access step does not appear, group model access is not available for your deployment yet, and you can configure only usage limits. Group model access is not available for customer-hosted deployments.

Remove a configuration

Open the group and select Remove configuration. This removes the group's usage limit and model access from every organization in the hierarchy. On their next request, members fall back to their individual override or the global user limit, and to the organization model policy plus any individual model override.

Groups removed from your identity provider

If a group is deleted or unassigned in your IdP while it still has a configuration, it stays in the list as <group id> (not in directory) and sorts last. Its settings no longer reach anyone, because membership is no longer synced. Remove the configuration to clean it up.

See group limits for each user

Group limits also appear wherever per-user limits are managed. In Settings → Usage, select Manage under individual user limits:

  • The Group filter lists users whose effective limit comes from a group. Each row shows the group name and limit, for example Engineering · 20.00M credits.
  • Expand a user to see the resolution order: individual override, each group tier, and the global user limit, each marked Applies, Superseded, or Not set.
  • Use Set individual override in the expanded row to give one user an exception to their group limit, or Remove override to return them to it.

Enforcement, the manager usage table, and weekly usage summary emails all use the same resolution, so the limit a user sees is the limit that is enforced.

Membership sync

Factory reads group membership from Directory Sync. Adding or removing a user from a group in your IdP updates their Factory groups through Directory Sync events, and a periodic reconciliation corrects any drift. Group settings are keyed by the group's stable directory ID, so renaming a group in your IdP does not break its configuration.

Group membership affects only the settings configured on User Groups. Roles still come from your group-to-role mapping.

Manage group limits with the API

Managers can read and set group limits for their organization through the Organization API:

  • GET /api/v0/organization/usage/limits/groups returns each mapped group with its directory name and limit.
  • PUT /api/v0/organization/usage/limits/groups maps up to 100 groups per request. Each entry takes a directory groupId and a limit in credits (minimum 1,000,000). Pass null as the limit to unmap a group.
Bash
curl -X PUT https://api.factory.ai/api/v0/organization/usage/limits/groups \
  -H "Authorization: Bearer $FACTORY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"groups": [{"groupId": "directory_group_01EXAMPLE", "limit": 50000000}]}'

The API applies to the organization the API key belongs to. Use User Groups in the Admin Console to configure several organizations at once, and to configure group model access, which the API does not cover.

Audit trail

Every group limit change, from the Admin Console or the API, is recorded in the audit log under usage limits, with one event for each organization whose group limit changed. Group model access changes are recorded under managed settings, with one event for each organization whose settings changed.

FAQ