Identity & Access

Manage who can run Droid with SSO, Directory Sync, roles, service accounts, Agent Profiles, and Factory API keys.

Identity and access management controls who can run Droid, in which environments, and under what policies. This page covers the identity model and roles, Single Sign-On and SCIM directory sync, and service accounts and Agent Profiles for work that runs on your organization's behalf.

Identity model

Every Droid run is associated with several dimensions of identity:

Identity dimensionWhat it controls
User or machine identityHuman developers authenticate via SSO (SAML/OIDC), inheriting their directory groups and roles. Automation (CI/CD, scheduled jobs, scripts) runs under service accounts with their own API keys.
Org / project / folderThe active repo and .factory/ folders determine the org, folder, and project context. Policies at these levels decide which models, tools, and integrations Droid may use.
Runtime environmentWhether Droid runs on a laptop, in a CI runner, or in a sandboxed VM is captured as environment attributes. Policies can treat these differently, such as allowing higher autonomy only in CI or sandboxes.
Session metadataEach Droid session records metadata such as session ID, CLI version, and git branch, which is available for audit and OTEL telemetry.

Identity and environment information feed two systems: policy evaluation (managed settings use identity and context to decide which configuration applies; see Enterprise Controls & Managed Settings) and telemetry and audit (OTEL metrics and audit events carry attributes such as user.id, organization.id, and session.id; see Compliance & Audit).

Roles

Factory organizations have three membership roles: User, Manager, and Owner. Each role includes the permissions of the roles below it, and role information flows from your IdP (via SSO claims or SCIM groups) into Factory.

RoleCapabilities
OwnerFull control of the organization, including billing, deletion, all settings, members, and API keys.
ManagerManage members, organization settings, API keys, service accounts, and Agent Profiles. Manage org-level .factory policy (models, command allow/deny lists, telemetry, autonomy ceilings).
UserStandard member. Run Droid locally, in IDEs, in CI, or via team scripts, and customize personal preferences in ~/.factory/, but cannot change any setting locked at the org, folder, or project level.

User

Users can access Factory and use the core product experience. This role fits members who create and work with Droid sessions, use their personal workspace, and view information relevant to their own activity. Users can create and share their own sessions, view their own analytics and activity, view the organization's usage in Settings, manage their own personal settings and connections, view other members when the organization allows member visibility, and manage the service accounts and Agent Profiles they have been made an owner of. Users cannot manage organization-wide settings, billing, members, or shared administrative controls.

Manager

Managers can do everything Users can, plus manage most day-to-day organization administration. This role fits team leads, workspace admins, or operations owners who keep the organization running. Managers can invite, update, and remove members; manage organization integrations and repositories; view organization-level analytics dashboards and full usage data, including global and per-user limits; manage usage limits and usage-related controls; manage organization settings and enterprise controls; manage service accounts and shared computer resources; create, edit, duplicate, and delete Agent Profiles and assign them to delegation apps; and purchase or configure extra usage where available. Managers cannot manage owner-only billing, payment, or identity-administration actions.

Owner

Owners can do everything Managers can, plus access the most sensitive organization controls. This role fits the person or team ultimately responsible for the Factory account. Owners can manage billing details and payment methods, access the billing portal, start or change high-impact subscription settings, configure SSO, domain verification, and directory sync where available, view the organization's audit log (an Enterprise feature available to organization owners), complete account onboarding or plan setup steps that require account ownership, and manage owner-only usage and billing controls. Owners can also change, lock, and unlock locked service accounts and Agent Profiles even when they are not one of their owners. Only Owners can lock or unlock the Org Default Agent Profile.

Organization roles and resource owners

Service accounts and Agent Profiles can also have their own owners: individual members who manage that one resource. Being an owner of a resource is separate from the organization Owner role.

Action on a service account or custom Agent ProfileUserUser who owns itManagerOwner
CreateNoNoYesYes
Edit, delete, or change owners and access (unlocked)NoYesYesYes
Edit, delete, or change owners and access (locked)NoYesNoYes
Lock or unlockNoYesNoYes
Duplicate an Agent ProfileNoNoYesYes
Assign Agent Profiles to delegation appsNoNoYesYes

A Manager or Owner who is also an owner of a resource has both sets of permissions. See service account owners and Agent Profile owners for details.

Exact access can vary based on your organization's plan, enabled features, and administrative settings. When in doubt, assign the lowest role that gives a member the access they need.

The managed settings engine enforces what each role can effectively change. See Enterprise Controls & Managed Settings for the exact precedence rules.

Domains, SSO, and SCIM

Factory uses WorkOS for enterprise identity, supporting domain verification, SSO (SAML/OIDC), and Directory Sync (SCIM). Contact your Factory representative or support@factory.com to start setup; you will receive a secure setup link to configure your identity provider.

Info

WorkOS handles the technical configuration. The setup wizard generates the SAML/OIDC parameters and SCIM endpoint for your specific provider, so you do not configure ACS URLs, certificates, or attribute mappings by hand. For provider-specific screenshots and steps, follow the WorkOS admin guide linked in your setup flow.

Domain verification (required first)

Domain verification proves your organization owns specific email domains and is a prerequisite for SSO. You add each domain, WorkOS issues a TXT record, and you add it to your DNS; verification typically completes within 1-24 hours depending on propagation.

Once a domain is verified:

  • Automatic claiming - existing and new users with that email domain join your organization.
  • Identity governance - you can require SSO for domain users and apply org security policies (MFA, session controls, IP restrictions) consistently.
  • SSO readiness - you can enable SSO for the verified domains.

Verify your primary domain first, then add subsidiary, legacy, or alias domains. Each domain is verified separately but shares the same organizational policies.

Warning

SSO cannot be enabled without verified domains. All users authenticating via SSO must have email addresses from verified domains.

Single sign-on (SAML / OIDC)

With SSO enabled, users sign in through your IdP instead of a password:

  1. 1
    The user chooses "Sign in with SSO" and is redirected to your IdP.
  2. 2
    They authenticate with corporate credentials.
  3. 3
    The IdP returns a SAML assertion or OIDC token to Factory.
  4. 4
    The user is authenticated and, if Just-In-Time (JIT) provisioning is enabled, created on first login with a profile populated from the IdP claims.

WorkOS supports all major IdPs (Okta, Microsoft Entra ID, Google Workspace, OneLogin, Ping, JumpCloud) plus generic SAML 2.0 and OIDC. Organizations that do not use SSO can use passwordless magic-link sign-in, which is also useful for external collaborators.

Directory sync (SCIM)

SSO controls how users authenticate; SCIM controls which users and groups exist in Factory. With Directory Sync enabled through your IdP:

  • Adding a user to a synced directory group provisions them in Factory.
  • Updating directory attributes syncs to Factory.
  • Removing a user from the directory deactivates their access (soft delete - work history is preserved).
  • Group membership changes propagate automatically, so RBAC stays defined in your IdP.
  • Synced groups can carry monthly usage limits for their members through User Groups.
  • Synced groups can control who can use Agent Profiles and service accounts.

Sync only the groups that need Factory access (for example, factory-* groups), and keep the SCIM token secret - store it only in your IdP's application configuration.

Group-to-role mapping

Map your directory groups to Factory's three roles. WorkOS role slugs resolve as follows: owner maps to Owner; admin or manager maps to Manager; every other slug maps to User.

Example IdP groupFactory role
factory-ownersOwner
factory-managers (or factory-admins)Manager
factory-developers, factory-contractors, any other groupUser

Use descriptive, prefix-based group names (factory-*) so IdP configuration stays maintainable and auditable alongside your other enterprise apps.

Data priority and conflict resolution

When a user exists from multiple sources (SCIM, SSO JIT, manual invite, API):

  1. 1
    Directory Sync data wins - SCIM attributes overwrite other sources.
  2. 2
    Email-based matching - users are matched by email, case-insensitively (John.Doe@company.com equals john.doe@company.com).
  3. 3
    Custom data is preserved - Factory-specific fields not present in your directory are retained.
  4. 4
    Soft deletes only - removed users are deactivated, not deleted.

When both SSO JIT and SCIM are enabled, choose one primary method to avoid duplicate-user conflicts: either disable JIT and require directory provisioning (directory-first), or use JIT for creation and the directory for updates (SSO-first).

Troubleshooting

Keep a small pilot group for initial rollout, and manage all role changes and access reviews in your IdP to reuse existing governance.

Service accounts

Service accounts are non-human identities that automate work on behalf of your organization: CI/CD pipelines, scripts, Slack automations, or Droid Computers. Use one when a workload should belong to your organization instead of a specific teammate. A service account authenticates with a Factory API key and runs as its own principal, so sessions, computers, billing, and audit events are attributed to it rather than a human user.

Every Agent Profile also has its own service account. The profile decides how Droid works, and its service account decides who Droid is: work that runs on the profile uses that account's Git credentials, connectors, secrets, and computers. A profile's service account is created with the profile and managed from the profile editor. This section covers service accounts you create yourself.

StepWhat to configure
Create a service accountAdd a stable identity from Settings → Identity → Service Accounts. Give it a clear name and description. Only Owner and Manager roles can create service accounts.
Generate API keysCreate keys for scripts, CI jobs, and other automated workloads. A key value is shown only once at creation - copy it and store it securely.
Attach Droid ComputersCreate Droid Computers owned by the service account so long-running work continues under the same identity instead of a teammate's account.
Configure Git accessFor GitHub and GitHub Enterprise Server, install your organization's GitHub App on the repositories the service account needs; no token is needed. For GitLab and GitLab Self-Hosted, add a token owned by the service account in its Git Credentials. See repository access for the service account and Self-Managed Source Control.

Business and Enterprise plans can create service accounts for any workload. Individual plans and the Teams plan cannot create standalone service accounts. They get the service account of the Org Default Agent Profile, which serves Delegations, and one for each custom Agent Profile.

A service account must be active to authenticate. Marking one inactive or deleting it causes new requests with its keys to fail, so move or restart dependent workloads first. Names are immutable identifiers - create a new account if you need a different name.

Managers and Owners can see and manage every service account in the Service Accounts section of Settings → Identity. A User who is an owner of a service account also sees the Service Accounts section and can manage the accounts they own. See organization roles and resource owners.

Service account owners

Owners are people who manage a specific service account without needing the Manager role. Owners can view and edit the account, including its API keys, Git credentials, connectors, secrets, computers, access, and lock. They can also change its owners and delete it.

  • Owners must be active members of the organization. Directory groups cannot be owners.
  • An account can have up to 50 owners.
  • Creating a service account does not make you one of its owners. Add owners from the account's settings.
  • Owners who are not Managers cannot create new service accounts.

The service account of an Agent Profile has no owner list of its own. The profile's owners manage it. See Agent Profile owners.

Lock a service account

Lock a service account to stop other Managers from changing it. While an account is locked, only its owners and organization Owners can change its settings, status, owners, or access, manage its API keys, Git credentials, connectors, secrets, or computers, or delete it. Other Managers see it as read-only.

Only the account's owners and organization Owners can lock or unlock it. You can lock an account that has no owners after confirming; until someone adds an owner, only organization Owners can change it.

The service account of an Agent Profile follows the profile's lock.

Service account access

Access controls who can use a service account: who can choose it in the Run as picker for an automation, who can act as it from the session composer, and who can use its computers.

  • Everyone: every member of the organization can use the account.
  • Specific people and groups: only the people you list and members of the directory groups you select can use it. Managers and the account's owners can always use it.

People without access do not see the account in Run as pickers. Directory groups come from directory sync.

The access of an Agent Profile's service account is set in the profile editor. Org Default's account is always open to everyone.

Computer secrets

Computer secrets are environment variables for a service account's managed computers. They are available on Factory-hosted deployments. Open them from Secrets in an active service account's actions, or from the Secrets section of an Agent Profile.

  • Service account secrets are added to your organization's computer secrets. If a name matches an organization secret, the service account's value is used.
  • Existing computers keep their current environment until they are refreshed and restarted.
  • Values are write-only. You cannot read a value back after saving it.
  • Names can be up to 128 characters, must start with an uppercase letter or underscore, and can contain only uppercase letters, digits, and underscores. Some names are reserved and cannot be used.
  • Values must be 1 to 10,000 characters.

Managers, Owners, and the account's owners can manage secrets. The account's lock applies. Inactive accounts cannot have their secrets changed.

Warning

Service accounts never inherit organization OAuth credentials for source control. If a GitHub or GitHub Enterprise Server repository does not have a matching GitHub App installation, or a GitLab or GitLab Self-Hosted repository has no service-account token, Factory stops the operation instead of running it with a human user's access.

Service account key hygiene

PracticeWhy it matters
Use short-lived keys when possibleSet expiration dates for keys used in temporary automation to limit blast radius if a key is exposed. Organizations can also set a maximum lifetime for new keys, including service account keys. See API key lifetime limit.
Rotate keys regularlyCreate a new key, update the workload, then revoke the old key.
Lock shared accountsAdd owners and lock accounts that production workloads depend on, so only the people responsible for them can change them.
Delete when finishedDeleting a service account revokes its access and cleans up owned Factory resources where possible.

Agent Profiles

An Agent Profile is the saved setup Factory uses when Droid works on your organization's behalf, such as when a teammate delegates work from Slack, Linear, Jira, Microsoft Teams, or Google Chat. Each profile has its own service account, plus a model, custom instructions, plugins, and compute.

The service account decides who the work runs as and what it can reach. The Agent Profile decides how the work runs. Shared sessions run as the profile's service account, never as the teammate who asked or the administrator who edited the profile.

Every eligible organization has a built-in Org Default Agent Profile, and Managers and Owners on a paid plan can create custom profiles for specific teams. Manage them under Settings → Identity → Agent Profiles. See Agent Profiles for what each setting controls.

Devices, environments, and workspace trust

Because Droid is a CLI, it can run on developer laptops, remote dev servers, CI runners, and hardened VMs or devcontainers. Enterprises typically combine Droid with endpoint management and environment-aware policy:

Endpoint and workspace controls

ControlRecommended use
Endpoint and MDM controlsUse Jamf, Intune, or other MDM solutions to control where Droid binaries can be installed, which users can run them, and which configuration files they can read. Common patterns: run only under managed user accounts, restrict configuration directories to corporate-managed volumes, and enforce OS-level disk encryption and screen lock.
Workspace trustTreat Droid as trusted only in known repositories. Pin Droid to specific paths or repos, require elevated approval or sandboxed environments for untrusted code, and use project-level .factory/ folders to mark which repos are "Droid-ready."
Environment-aware policiesThe same developer may run Droid on a laptop, in CI, or in an isolated container. Policies can allow higher autonomy or more powerful tools only inside devcontainers or CI runners, restrict network access on laptops, and tag OTEL telemetry with environment attributes for environment-specific alerting.