# Set up an identity for Droid

Create a dedicated identity for Droid in your identity provider and use it to connect apps on Agent Profiles, so shared work has its own access, audit trail, and off switch.

When teammates delegate work from Slack, Linear, Jira, Microsoft Teams, Google Chat, or a multiplayer session, Droid works as an [Agent Profile](/enterprise/agent-profiles). The profile's connectors are shared: anyone the profile serves can use them through Droid. This page explains how to give those connectors an identity of their own, such as `droid@yourcompany.com`, and how to set it up so Droid has exactly the access you intend.

It is written for the Factory Managers, Owners, and profile owners who set up Agent Profiles, and for the IT and app administrators who help them.

## Why Droid needs its own identity

An Agent Profile connector carries the access of whichever account signed in to it. If you sign in with your own login, everyone who can use the profile can reach what you can reach, and their actions appear under your name. A dedicated identity avoids both problems.

<PropertyList>
  <Property name='Access you choose'>
    The identity starts with no access. You grant it only the projects, folders, channels, and records the profile's work needs.
  </Property>
  <Property name='A clear audit trail'>
    Droid's actions show up under the identity in each app's audit log, so your security team can tell agent activity from human activity at a glance.
  </Property>
  <Property name='Predictable behavior'>
    Droid can do the same things no matter who asks. Nothing changes when an administrator changes roles or leaves the company.
  </Property>
  <Property name='One place to turn it off'>
    Suspend the identity in your identity provider, or disconnect it on the profile, and Droid's shared access ends without touching anyone else's account.
  </Property>
</PropertyList>

<Warning>
  Never connect a personal login to an Agent Profile. A profile connection is shared with everyone the profile serves, using the permissions of the account that signed in. Factory shows a **This connection is shared** warning before every profile connection for this reason.
</Warning>

## How the pieces fit together

Droid has two layers of identity. In Factory, every Agent Profile has a [service account](/enterprise/identity-and-access#service-accounts) that decides who Droid is: its Git credentials, connectors, secrets, and computers. In your other apps, Droid needs an account in each one, and that is the identity this page helps you create.

```mermaid
%%{init: {"theme": "base", "themeVariables": {"fontFamily": "Geist Mono, monospace", "fontSize": "13px", "primaryColor": "#161413", "primaryBorderColor": "#342F2D", "primaryTextColor": "#FAFAFA", "lineColor": "#4D4947", "textColor": "#D6D3D2"}}}%%
flowchart LR
    idp["droid@yourcompany.com<br/>in your identity provider"] --> apps["An account<br/>in each app"]
    apps -->|Sign in| conn["Agent Profile<br/>connectors"]
    conn --> work["Shared work<br/>channels, issues, sessions"]
```

| Where the request comes from | Whose connectors Droid uses |
| :--------------------------- | :-------------------------- |
| A Slack, Microsoft Teams, or Google Chat channel or space mention | The Agent Profile's connectors |
| A Linear or Jira issue | The Agent Profile's connectors |
| A multiplayer session | The Agent Profile's connectors |
| A direct message to Factory | The sender's own [connectors](/harness/connectors) |

Personal connectors stay personal. Mentioning Factory in a channel never passes the requester's own connections to the shared session, so the profile's connectors are the only app access shared work has.

<Note>
  The identity you create is an account in your other apps, not a Factory member, and it never signs in to Factory. In Factory, the profile's service account is Droid's identity.
</Note>

## Plan your identities

Decide how many identities you need before you create any. Each Agent Profile has its own connectors, so the choice follows how your profiles are split.

<ComparisonTable label='Choosing how many identities to create' highlightColumn={3}>

| | One identity for all profiles | One identity per profile |
| :-- | :-- | :-- |
| Example | `droid@yourcompany.com` | `droid-backend@`, `droid-support@` |
| Access | Every profile reaches the same data | Each profile reaches only its team's data |
| Audit | Activity is attributed to Droid | Activity is attributed to Droid and the team it worked for |
| Setup effort | Lowest | One account per app, per profile |
| Best for | Org Default alone, or profiles that differ only in model or instructions | Profiles with different [access](/enterprise/agent-profiles#access), such as a team-restricted profile |

</ComparisonTable>

Some guidelines:

- **Match the identity to the profile's audience.** Anyone a profile serves can use everything its identity can reach. The [Org Default](/enterprise/agent-profiles#the-org-default-agent-profile) profile serves everyone, so keep its identity's access to what any member may see.
- **Give restricted teams their own profile and identity.** If finance or security data should stay with one team, put it behind a custom profile whose access is limited to that team's directory group, with its own identity.
- **Name identities after what they do.** A name like `droid-backend` reads clearly in every app's member list and audit log.

## Create the identity in your identity provider

Create the identity the way you would onboard a new teammate, so it works with your existing SSO, security policies, and offboarding.

<Steps>
  <Step title='Create the user'>
    In Okta, Microsoft Entra ID, Google Workspace, or your email admin console, create a user such as `droid@yourcompany.com` with the display name **Droid**. Give it a mailbox, because app invitations, verification codes, and security notices go to that address.
  </Step>
  <Step title='Assign owners'>
    Make the profile's owners responsible for the identity. Record them in the user's description or your IT asset system, and give them access to the mailbox, for example through mailbox delegation or a shared inbox.
  </Step>
  <Step title='Secure the sign-in'>
    Generate a strong password and enroll MFA. Store both in your team's password manager, in a vault the profile owners share, so no single person holds the only way in.
  </Step>
  <Step title='Group it for policy'>
    Put the identity in a group, or in Google Workspace an organizational unit, reserved for agent identities. Use it to apply policies such as blocking external file sharing, and to exclude the identity from licenses and app assignments it does not need.
  </Step>
  <Step title='Assign only the apps Droid needs'>
    If your apps sign in through SSO, assign the identity to just those apps in your identity provider. Apps you do not assign stay unreachable to Droid, even if someone later connects them.
  </Step>
</Steps>

<Tip>
  If your apps send email to the account, plus addressing such as `droid+support@yourcompany.com` can give each profile its own app accounts while sharing one mailbox. Check that each app and your SSO setup accept plus addresses before relying on them.
</Tip>

## Give the identity access in each app

For each app the profile will use, add the identity as a member with the narrowest role that covers the work. The right pattern depends on what the app offers.

| App type | Recommended pattern | Examples |
| :------- | :------------------ | :------- |
| Workspace suites | A dedicated user in your directory. Share only the folders, sites, shared drives, and calendars Droid needs. | Google Workspace, Microsoft 365 |
| Apps with seats and roles | Invite the identity as a member, or as a guest where guests can be limited to specific teams, projects, or spaces. | Linear, Notion, Jira, Confluence, Asana, HubSpot, Figma |
| Apps with native service accounts or read-only roles | Create the app's service account or a user with a read-only role, and add it to the specific projects or teams. | Datadog, Sentry, PagerDuty, Snowflake |
| Apps that sign in with a key or token | Create the key while signed in as the identity, or from the app's service account, with the smallest scope the app allows. | Elasticsearch, Splunk, Discord |
| Source control | Use your organization's GitHub App or a GitLab group access token instead of a connector. See [Git access](#git-access). | GitHub, GitLab |

### Narrow the account, not the connector

A connector can do whatever its account can do in the app. To limit Droid to certain pages, folders, projects, or channels, limit the account:

- **Docs and wikis:** share only the spaces, teamspaces, or pages Droid should read.
- **File storage:** share specific folders or shared drives rather than granting domain-wide access.
- **Trackers:** add the identity only to the teams or projects it should work in.
- **Chat:** invite the identity only to the channels it should read or post in.
- **Data and monitoring:** grant read-only roles, and add write access only where the profile's work needs it.

Start read-only, then add write access when a real workflow needs it. Droid also asks for confirmation before write or destructive connector actions unless the session's [Autonomy Level](/autonomy-and-safety/auto-run) allows them, so read access and careful autonomy settings work together.

## Connect apps on the Agent Profile

Once the identity can sign in to an app, connect that app on the profile. Work through one app end to end, including the check in [Verify the setup](#verify-the-setup), before starting the next.

<Steps>
  <Step title='Open the profile'>
    Go to **Settings → Identity → Agent Profiles** and select **Edit** on the profile, or **Set Up for Org** on an Org Default that has never been saved. A new custom profile must be saved once before you can add connectors.
  </Step>
  <Step title='Choose the app'>
    Open the **Connectors** section, find the app, and select **Connect**. Factory shows **This connection is shared**, with a reminder that anyone who can use the profile can use the connection with the permissions you grant.
  </Step>
  <Step title='Copy the sign-in link'>
    Factory gives you a sign-in link instead of opening it in your current browser. Copy it.
  </Step>
  <Step title='Sign in as the identity'>
    Open the link in a private or incognito window, or a browser profile reserved for the identity, so you are not already signed in as yourself. Sign in as the identity and approve the access the app requests. Some apps show an OAuth consent screen; others ask for an API key, token, or endpoint instead.
  </Step>
  <Step title='Confirm the connection'>
    Return to Factory. The dialog shows that the app is connected. If you closed the dialog or the link expired, select **Connect** again for a new link.
  </Step>
</Steps>

<Note>
  The sign-in link authorizes a connection for the profile, so treat it like a password. Share it only with the person who will sign in as the identity, and do not post it in a channel.
</Note>

A few apps need more before anyone can connect them:

- **Apps that use an organization OAuth app**, such as Databricks, Salesforce, and ServiceNow, need a Manager or Owner to configure the OAuth app first. See [apps that need an organization OAuth app](/harness/connectors#apps-that-need-an-organization-oauth-app).
- **Apps that sign in with a key or endpoint** list the values to enter in [apps that need extra setup](/harness/connectors#apps-that-need-extra-setup). Create those values while signed in as the identity, or from the app's service account.
- **Enterprise organizations** only see apps an Owner or Manager enabled under [Enterprise controls](/harness/connectors#enterprise-controls).

### Credentials outside connectors

For a command-line tool, API, or [MCP server](/harness/mcp) that is not a connector, store the identity's token as a [computer secret](/enterprise/identity-and-access#computer-secrets) in the profile's **Secrets** section. Secrets are write-only, and they reach the profile's managed computers as environment variables, so the same identity backs both connectors and scripts.

### Git access

Repository access does not use connectors. Shared work clones and pushes as the profile's service account:

- **GitHub and GitHub Enterprise Server:** install your organization's Factory GitHub App on the repositories the profile needs. No user or token is required, and pull requests show the app as the author.
- **GitLab and GitLab Self-Hosted:** add a group access token in the profile's **Git Credentials**. If your plan does not offer group access tokens, use a personal access token from the dedicated identity's GitLab account, never a teammate's.

See [repository access for the Agent Profile](/delegations#repository-access-for-the-service-account), and [require an independent GitHub review](/delegations#require-independent-github-review) so a requester cannot approve their own delegated change.

## Verify the setup

Check each app after you connect it, from the place your team will use it.

<Steps>
  <Step title='Ask what Droid can reach'>
    Mention `@Factory` in a channel the profile serves, or start a multiplayer session on the profile, and ask:

    ```text
    Which connected apps can you use here? Don't change anything.
    ```
  </Step>
  <Step title='Run a small read'>
    Ask for something the identity's access allows, such as the five most recent issues in a Linear team, a document by name, or the newest open Sentry issue.
  </Step>
  <Step title="Check the app's audit log">
    Confirm the request appears under the identity, not under your account.
  </Step>
  <Step title='Check what Droid cannot reach'>
    Ask for something the identity was not granted, such as a private project or folder. Droid should report that it has no access.
  </Step>
</Steps>

On Enterprise plans, the Factory [audit log](/enterprise/audit-log) also records connector changes on service accounts, and each delegated session records the person who asked and the identity the session ran as.

## Run the identity day to day

<PropertyList>
  <Property name='Lock the profile'>
    Add owners and [lock](/enterprise/agent-profiles#lock) profiles that production work depends on, so only their owners and organization Owners can change their connectors.
  </Property>
  <Property name='Review access regularly'>
    Include the identity in your quarterly access reviews: its app roles, the projects and folders shared with it, and the profile's [access](/enterprise/agent-profiles#access) list.
  </Property>
  <Property name='Rotate keys and tokens'>
    For apps that use keys or tokens, set an expiration you track, create the replacement while signed in as the identity, reconnect the app, then revoke the old key. Organizations can also cap Factory API key lifetimes with the [API key lifetime limit](/enterprise/hierarchical-settings-and-org-control#api-key-lifetime-limit).
  </Property>
  <Property name='Reconnect after password or MFA changes'>
    Some apps revoke OAuth grants when the account's password changes. If an app stops working, disconnect and reconnect it on the profile.
  </Property>
  <Property name='Retire it cleanly'>
    To end Droid's shared access, disconnect the apps on the profile, or delete the profile, which removes its connectors. Then suspend the identity in your identity provider, and revoke any API keys or tokens it created, since some apps keep tokens working after a user is suspended.
  </Property>
</PropertyList>

## App-specific notes

Use these notes alongside each app's own documentation. Role names and plan features change, so confirm them in the app before you grant access.

<PropertyList>
  <Property name='Linear'>
    Invite the identity to only the teams the profile works in. Where your plan offers guests, a guest seat limits Droid to the teams you add it to.
  </Property>
  <Property name='Notion'>
    Add the identity as a member or guest of the teamspaces or pages Droid should read. When Notion asks which pages to share during sign-in, pick only those.
  </Property>
  <Property name='Jira and Confluence'>
    Create an Atlassian account for the identity, give it product access, and add it to the specific project roles and spaces it needs. Jira and Confluence permission schemes then bound what Droid can browse and edit.
  </Property>
  <Property name='Google Drive, Docs, Sheets, Calendar, and Gmail'>
    Use the identity's Google Workspace account. Share specific folders or shared drives and calendars with it, and keep its mailbox for Droid's own mail. Apply sharing restrictions through its organizational unit.
  </Property>
  <Property name='Outlook, SharePoint, OneDrive, and Teams'>
    Use the identity's Microsoft Entra ID account with the license these apps need. Add it to the specific SharePoint sites and Teams it should reach. If Conditional Access policies apply, scope any exception to this one account.
  </Property>
  <Property name='Slack connector'>
    The Slack connector acts as the account that signs in. Give the identity a Slack account and invite it only to the channels it should read or post in; a multi-channel guest account limits it further. This is separate from the [Factory Slack app](/delegations/slack), which receives requests and posts results as Factory.
  </Property>
  <Property name='Sentry, Datadog, and PagerDuty'>
    Add the identity to the specific teams, projects, or services it should see, with a read-only or member role. If the app asks for a key, create it from the app's service account or the identity's own account.
  </Property>
  <Property name='Salesforce and HubSpot'>
    Create a dedicated user with a profile, permission set, or team limited to the objects and records Droid should read. A Manager or Owner configures Salesforce's [organization OAuth app](/harness/connectors#apps-that-need-an-organization-oauth-app) first.
  </Property>
  <Property name='Snowflake and BigQuery'>
    Create a dedicated user, or a service account for BigQuery, with a role granted read access to only the databases, schemas, or datasets Droid should query.
  </Property>
</PropertyList>

## Setup checklist

<Checklist>
  <ChecklistItem status='pass'>A dedicated identity exists in your identity provider, with named owners, a mailbox, and MFA stored in a shared vault</ChecklistItem>
  <ChecklistItem status='pass'>Each Agent Profile with different access has its own identity, or shares one only with profiles that serve the same people</ChecklistItem>
  <ChecklistItem status='pass'>The identity has the narrowest role in each app, read-only where possible, and only the projects, folders, and channels it needs</ChecklistItem>
  <ChecklistItem status='pass'>Every profile connector was connected by signing in as the identity in a private window</ChecklistItem>
  <ChecklistItem status='pass'>Git access uses the GitHub App or a GitLab group token, not a personal login</ChecklistItem>
  <ChecklistItem status='pass'>Each app was verified with a small read that appears under the identity in the app's audit log</ChecklistItem>
  <ChecklistItem status='pass'>Production profiles have owners and are locked</ChecklistItem>
  <ChecklistItem status='fail'>A personal login is connected on any Agent Profile</ChecklistItem>
</Checklist>

## Frequently asked questions

<FAQ>
  <FAQItem title='Does the identity need a Factory account or seat?'>
    No. The identity is an account in your other apps, and it never signs in to Factory. In Factory, the Agent Profile's service account is Droid's identity.
  </FAQItem>
  <FAQItem title='Can I reuse an existing bot or integration account?'>
    Only if nothing else depends on it and its access matches what the profile should have. A dedicated identity keeps Droid's activity separate in audit logs and lets you revoke it without breaking other integrations.
  </FAQItem>
  <FAQItem title="What happens to my personal connectors when I mention Factory in a channel?">
    Nothing. Channel, space, issue, and multiplayer work uses only the profile's connectors. Your personal connectors are used only when you send Factory a direct message.
  </FAQItem>
  <FAQItem title='Who can connect apps on a profile?'>
    Managers and Owners can manage any unlocked profile. A custom profile's owners can manage that profile's connectors even without the Manager role. Locked profiles can be changed only by their owners and organization Owners.
  </FAQItem>
  <FAQItem title='Can different channels get different access?'>
    Shared requests from Slack, Linear, Microsoft Teams, and Google Chat run on Org Default. Jira requesters can name a custom profile with `!profile`. Give Org Default the access any member may use, and put team-specific access on custom profiles.
  </FAQItem>
</FAQ>

<RelatedLinks>
  <RelatedLink href='/enterprise/agent-profiles' title='Agent Profiles'>
    Configure how Droid works and who it serves.
  </RelatedLink>
  <RelatedLink href='/enterprise/identity-and-access' title='Identity & Access'>
    Service accounts, roles, owners, and locks.
  </RelatedLink>
  <RelatedLink href='/harness/connectors' title='Connectors'>
    The connector catalog and how connections work.
  </RelatedLink>
  <RelatedLink href='/delegations' title='Delegations'>
    Delegate work from Slack, Linear, Jira, and more.
  </RelatedLink>
</RelatedLinks>
