Set up an on-prem connector
This guide is for Mesh administrators. You'll register an edge agent, hand its install command to your agent operator, then add and test connectors once the agent is online.
If you're the person who runs the agent on a server, see Run the edge agent instead.
Before you begin
- A Mesh administrator account with permission to manage connectors.
- An agent operator — someone who can run a container on a host inside your network. That host needs Docker installed and running. You'll hand them a command; they can start as soon as you issue it.
- Details for the internal system you want to connect: its base URL and how it authenticates (for example, an API token).
The token you're about to issue is short-lived, so confirm your operator is ready — and that Docker is running on their host — before you issue it.
Step 1 — Open On-prem agents
In the Mesh dashboard, go to Settings > On-prem agents. This page lists the agents running in your environments, grouped by state — Enrolled, Stale / decommissioned, and Created but not yet enrolled. If you haven't added one yet, you'll see "No on-prem agents yet. Add one to get started."
Select an agent to open its page. Each agent page, and each connector on it, has its own link, so you can bookmark or share it, and your browser's Back button steps back through them.
The ? buttons throughout the on-prem screens open the matching section of this guide in a new tab.

Step 2 — Register an agent
Select + Add agent. In the dialog:
- Name — a name you'll recognize later, for example
prod-east-1. - Labels (optional) —
key=valuepairs that help you filter the list, for exampleregion=us-east-1, env=prod.
Select Issue token.

Step 3 — Copy the token and command
Mesh shows a one-time enrollment token and a ready-to-run command:
- Enrollment token — select Copy.
- Run on the customer host — the full command your operator runs. Select Copy in the top-right of the command block.

The enrollment token is shown once. Copy it before you close the dialog — otherwise you'll need to register the agent again to get a new one.
Send both the token and the command to your agent operator over a secure channel. They'll follow Run the edge agent.
Tick "I've copied the token. I understand it can't be shown again.", then select Done.
The token is valid for 15 minutes and can be used only once. If it expires before your
operator creates the agent, their container logs enroll: ENROLL_TOKEN expired and the
agent stays Unenrolled here. An expired token can't be reused — add the agent again
to issue a fresh one.
You don't need to clean up the unenrolled attempt first — issuing a new token always works and creates a separate agent entry. It's fine to leave the failed one under Created but not yet enrolled, or delete it later for tidiness; neither is required before retrying.
Step 4 — Wait for the agent to come online
Back on the On-prem agents list, your agent appears under Created but not yet enrolled with a Status. Once your operator runs the command, the status turns Enrolled within a minute or so.

| Status | Meaning |
|---|---|
| Unenrolled | Registered, but hasn't connected yet. |
| Enrolled | Connected and healthy. |
| Stale | Was enrolled, but hasn't checked in recently. |
| Decommissioning / Decommissioned | Being shut off / no longer trusted. |
The list also shows each agent's ID (under its name), Last seen, Labels, and Cert expires.
An agent's certificate is valid for 90 days from enrollment, and the agent renews it automatically about 7 days before it would expire — the Cert expires column is informational, not something you need to act on. It only becomes relevant if an agent has been offline for the full 90-day window without reconnecting; then its certificate genuinely lapses and it needs a fresh enrollment token to come back.
Step 5 — Add a connector to the agent
Select the agent to open its page, then open the Connectors tab and select + Add connector. The button is unavailable, with the reason shown, while the agent isn't enrolled, has gone stale, or is being decommissioned.

The Add connector picker shows the agent it runs on and its platform. Type in Search connectors to narrow the list, then choose a connector:
- Guided setup
- Custom connector — for any internal system with an HTTP API (the Universal REST connector).
- SailPoint IdentityIQ — for an IdentityIQ deployment inside your network. It has its own guide: Set up the SailPoint IdentityIQ on-prem connector.
- Manual setup
- Active Directory (LDAP/LDAPS) — for an on-premises directory.
A connector that has no build for the agent's platform is greyed out and can't be selected; hover over it to see why, for example "No linux/arm64 build".

Clicking outside the picker or a connector form doesn't close it, so a stray click won't lose what you've typed. Close the picker with ✕ or by pressing Esc; a form also has Cancel.
The Active Directory and Custom connector flows are covered below.
Active Directory (LDAP/LDAPS)
Choose Active Directory (LDAP/LDAPS) to ingest users, groups, devices and managed service accounts from an on-premises domain controller through the edge agent.
Give the connector a Display name — it distinguishes this connector from others of the same provider on the same agent — and leave the Version at Latest unless you have a reason to pin an older one. (Changed your mind about the provider? ‹ All connectors takes you back to the picker.) Then fill in the connection:
- Domain controller — the host Mesh should reach, resolved from the agent's network. With LDAPS, use a hostname listed in the domain controller's certificate. An IP address works only if the certificate lists that IP.
- Port —
636for LDAPS and389for plain LDAP are the common cases, but any port is accepted — for example, a Global Catalog port (3268plain,3269over TLS) if that's what you need to reach. - Use LDAPS (TLS) — keep this on.
- CA certificate (PEM) — if the domain controller's certificate was issued by your organization's own certificate authority (for example, Active Directory Certificate Services), paste that CA's certificate here, the root plus any intermediates. Leave it empty if the certificate comes from a publicly trusted CA.
- Skip certificate check — leave this off in production. Turn it on only against a lab domain controller with a self-signed certificate.
LDAPS here means the connection itself is encrypted. Authentication is still the username and password you provide below, sent over that encrypted channel — there's no client certificate to install or manage on your side.
The domain controller's issuing CA does have to be trusted, and the CA certificate (PEM) field is how you provide it. Trusting a CA on the agent's host has no effect, because the agent runs in its own container.
An Active Directory connector you created earlier picks up the CA certificate (PEM) field once it is on the latest connector version: open the connector, add the certificate and save it again.
Today, one connector talks to exactly one domain controller — there's no built-in failover or load balancing across multiple DCs. If you need resilience across DCs, point this field at an address you load-balance yourself (a VIP or DNS round-robin); the connector itself doesn't manage that.

Below that, provide the sign-in credentials for the account Mesh binds as, then set what to sync:
- Base DN — where in the directory to read from, for example
DC=corp,DC=example,DC=com. - Sync every — how often the connector runs.
- Include devices and Include Group Policy — extend the sync beyond users and groups.
- Include managed service accounts — on by default. Brings in group-managed (gMSA)
and standalone (sMSA) service accounts as non-human identities. They are searched for
under the Base DN, so the Base DN must include the container or OUs that hold them
(by default the
CN=Managed Service Accountscontainer at the domain root). If the Base DN is an OU and no managed service accounts are found, the run shows a warning. The bind account needs only read access there. Because the option is on by default, an existing connector does one full re-read of the directory on its first run after the upgrade, and turning the option back on later triggers another. If the bind account can't read that container, the run reports a partial result. - Non-human identity OUs — one organizational unit (as a distinguished name) per
line. User accounts inside these units, or in any OU below them, are treated as
non-human identities, for example
OU=Service Accounts,DC=corp,DC=example,DC=com. Matching ignores case. - Non-human identity name patterns — one pattern per line, for example
svc_*.*matches any characters,?matches one character, and[...]matches one character from a set; matching ignores case. User accounts whose account name matches are treated as non-human identities. Managed service account names end in$, so a pattern likesvc_*doesn't match them, but they are always non-human identities anyway. - Treat accounts that need no password as non-human, Treat accounts whose password never expires as non-human and Treat accounts with no email address as non-human — three switches, all off by default, that each add the matching accounts to non-human identities.
Under Advanced, Managed service account filter sets which directory objects count as managed service accounts. The default covers both group-managed and standalone accounts; change it only if you need to narrow or widen that set.
Select Test connection to have the agent check the connection from inside your network. It reports each check separately — name resolution, the LDAPS connection, the TLS handshake, the bind, whether the base DN is reachable, and whether delta sync is available. Where DirSync is available, each run fetches only what changed since the last one — this uses Active Directory's own change-tracking (the same USN-based mechanism you may already know from other tools), so there's no separate cursor for you to manage. One behavior worth knowing: a run has to complete successfully for that checkpoint to save. If a run is interrupted partway through, the next run starts over from scratch rather than resuming where it left off.
What gets collected
The connector reads five kinds of data. The set of fields for each is fixed, but you control which accounts are treated as non-human identities (see below) and whether managed service accounts are included:
- Users — name, email, job title, phone/mobile, department, employee ID, address, manager, and last login, plus a few technical fields used to classify service accounts correctly.
- Managed service accounts (Include managed service accounts) — group-managed (gMSA) and standalone (sMSA) service accounts. For each one the connector collects details including the account name, distinguished name, security identifier, object GUID, account type, creation date, account control flags, service principal names, who may retrieve the managed password, the owner (the Managed by field), and the description. The connector doesn't request the managed password itself. When a managed service account is deleted, the next delta sync retires it. If the bind account can't read deleted objects, the run shows a notice and the account is still retired. Giving the bind account that read access lets Mesh also record which kind of managed service account was deleted. By default only administrators can read deleted objects; see Microsoft's guidance, How to let non-administrators view the Deleted Objects container.
- Groups — identity and membership only.
- Devices (Include devices) — machine name, hostname, operating system and version, creation date, last login, and group memberships.
- Group Policy (Include Group Policy) — a policy's name, version, and which organizational units it's linked to. This does not include the policy's actual content (registry settings, scripts, security rules), which lives outside what this connector reads, and it doesn't calculate whether a policy is actually in effect for a given user or device — linkage is reported as-is, not as a computed conclusion.
How service accounts are recognized as non-human identities
Mesh treats an account as a non-human identity when the directory itself says it is one: well-known built-in accounts, machine and trust accounts, managed service accounts, and any user account that has a service principal name. On top of that, you can add rules in the connector form:
- an organizational unit the account sits in (Non-human identity OUs);
- an account-name pattern (Non-human identity name patterns);
- the account is flagged as not requiring a password;
- the account's password never expires;
- the account has no email address.
The built-in checks run first, then your rules in the order listed above, and the first match wins. So an account with a service principal name that also sits in one of your OUs is shown with the service principal name as its reason. The reason that matched is shown as Classification reason in each service account's details, and can be added as a column to the service accounts list, so you can see why an account was classified that way. Rules only ever add accounts to non-human identities; they never turn one back into a person. The domain Administrator account is always treated as a person.
A non-human identity gets an owner only when the directory names one. For a managed service account the owner comes from its Managed by field, when that field is set. For an ordinary user account recognized as a service account, the owner is taken from its Manager field, when set, because Active Directory doesn't allow Managed by on user accounts. If the field is empty, the non-human identity has no owner in Mesh.

When every check passes, select Add connector. If a check fails, the result says what to fix — here, a domain controller name that doesn't resolve from the agent's network:

Custom connector (Universal REST)
Choose Custom connector for any internal system with an HTTP API. The guided setup runs in six steps.
Step 1 of 6 — Choose how to start
Give the connector a name — this is what you'll see in the connector list and audit logs — and pick a build version (take the one marked latest unless you have a reason not to).
Then tell the wizard what it has to work with:
- OpenAPI / Swagger spec — recommended. Paste, upload, or fetch a 2.0 or 3.0.x document.
- Endpoint list + sample responses — for systems without a published spec.
- Credentials + base URL only — Mesh probes the API and discovers fewer endpoints.
Supply the spec by uploading a file or fetching it from a URL. Check the Base URL of the system Mesh should call — it's filled in from the spec when the spec names its server. With https, use a hostname listed in the server's certificate; an IP address works only if the certificate lists that IP.
If the server's certificate was issued by your organization's own certificate authority,
the connector needs that CA. The template the wizard generates has no CA field, so a
custom connector uses the agent-wide SSL_CERT_FILE bundle instead; see
Run the edge agent. A CA field
(labelled CA certificate (PEM) unless the template names it otherwise) appears only
if you edit the generated template in Step 5 to
declare one. Where the field is shown, paste the CA's certificate, the root plus any
intermediates, as PEM text. Never paste a private key, and don't paste a full system or
public CA bundle. The CA is added to the agent's normal trusted authorities, so public
CAs keep working, and it applies to the connection test, every sync and the sign-in
requests that fetch tokens. Leave it empty for a publicly trusted CA. The Skip
certificate check (lab only) option turns verification off for all of those and
ignores any CA you supplied: never use it in production.
If the connection test reports an untrusted, expired or mismatched certificate, see
Troubleshooting.
A connector keeps the connector version it was saved with. One you created earlier picks up the CA certificate (PEM) field, where its template has one, once it is on the latest connector version: open the connector, choose the latest version, add the certificate and save it again.

Select Discover endpoints.
Step 2 of 6 — Review discovery results
Mesh reports what it found: how it classified the system, the source it used, how many endpoints it detected, and the auth scheme the spec declares.

Select Continue.
Step 3 of 6 — Confirm endpoints
Choose which endpoints this connector should ingest. Each one is tagged with the kind of data it returns and a risk score. Endpoints Mesh can't ingest are greyed out with the reason shown — for example a health check that returns no data, or a method that isn't supported yet.

Select Continue.
Step 4 of 6 — Set the sync strategy and authentication
Set a strategy per endpoint — whether each run is incremental or a full read, and the page size — then a sync frequency for the connector as a whole.
Then choose the auth type and enter the credential. Mesh supports Bearer token, API key, Basic, OAuth2 client credentials, OAuth2 authorization code (BYO token), mTLS, and SAML token.

The fields change with the auth type. OAuth2 client credentials, for example, asks for the token URL, client ID and secret, and optional scopes; Mesh mints a bearer token before each sync window.

Skip re-processing when upstream data hasn't changed is worth leaving on: the connector still calls the API every sync, but skips emitting downstream when the response is byte-identical to the last run.
Without a valid token or secret, the target API rejects every request and the test returns 0 records with no obvious cause.
Select Run test ingestion.
Step 5 of 6 — Test the ingestion
The test runs on the agent — inside your network — so it can reach systems that aren't publicly accessible. Mesh reports the outcome for each endpoint it called, along with the connector template it generated.

- If every check succeeds, select Save & activate.
- If a check fails, the outcome names what to fix — an unreachable host, a rejected credential — and you can go Back to correct it.

Confirm the connector is running
The connector appears on the agent's Connectors tab with its Run status — Running, Pending, Failed, or Disabled — and its version. Select it to open its page and see each collection run (see Manage a connector).

One agent can serve several connectors at once. If a connector fails to start, an alert naming it appears at the top of the tab; open the connector for the details.

Managing an agent
Open an agent to see its page, across several tabs:
- Overview — agent version, platform, when it enrolled, when it was last seen, its agent ID, certificate details, its labels, and its history. How to upgrade, next to the agent version, links to the upgrade steps your operator follows.
- Activity — its recent history.
- Connectors — the connectors running on this agent.
- Heartbeats — its regular check-ins.
- Logs — what the agent is doing, in more detail.

The Logs tab is the quickest way to see what an agent is doing without asking your
operator for docker logs.
Audit trail
Everything your agents and their connectors do is recorded alongside the rest of your tenant's activity. Go to Settings > Audit logs to review it — agents registering, being decommissioned and being deleted, connector configuration changes, connection tests, and each collection run. Decommissioning and deleting an agent are both recorded with the action revoke.
Each entry shows the time, a transaction ID, the client IP, the actor (one of your users, the agent itself, or the system), the action, its status, and the resource affected. Filter by date range, and select Export to download the full records as CSV.
Decommission an agent
To permanently retire an agent, open it and select Decommission. You'll be asked to type the agent's name to confirm. Use it when a host is retired or you suspect it's compromised.

Decommissioning cannot be undone. What happens:
- The agent's leaf certificate stops being trusted, so it's refused the next time it connects. If it's currently connected, a shutdown command is sent to it now.
- Registering this host again later creates a new agent instance — its history isn't linked to this one.
- Audit records for the agent are kept, and the decommission itself is audit-logged.
- Enrollment tokens work only once, so an enrolled agent's token can't be reused. If the agent never enrolled, its unused token stops working too.
- On the customer host, agent version 1.0.3 and later erase their stored certificate,
connector configuration and credentials themselves once the decommission reaches them.
Earlier versions don't: to clear them, your operator removes the agent container and
its
mesh-edge-datavolume — see Run the edge agent and Edge agent versions.
If the agent isn't connected at the time, the shutdown command can't be delivered and is not queued. Trust is still revoked, so the agent is refused when it next connects.
Delete an agent
Decommissioned agents, and agents that were created but never enrolled, stay on the list until you delete them. To remove one, select ⋮ at the end of its row, then Delete agent.

A confirmation explains what happens before anything changes. Select Delete agent to confirm, or Cancel to keep it.

- The agent disappears from the list, and a link to it shows that it can't be found.
- Its audit history, heartbeats and collection runs are kept, and the deletion itself is audit-logged.
- For an agent that never enrolled, its enrollment token stops working, so it can no longer be used to bring an agent online.
- Deleting can't be undone.
If the agent changed while the confirmation was open, for example because it enrolled, the delete is refused with This agent's state changed. It can't be deleted now. If the agent is busy, you'll see This agent is busy. Try again in a moment. If someone else already deleted it, you'll see This agent no longer exists or was already deleted. and the list refreshes.
Only decommissioned agents and agents that never enrolled can be deleted. To remove an agent that's enrolled or stale, decommission it first.
Manage a connector
Select a connector on its agent's Connectors tab to open its page:
- Status — the connector's type, whether it's enabled, its version, and when it last collected and how many records. If a newer build is available for the agent's platform, a notice says so.
- Settings — a read-only summary of how the connector is configured. Passwords, tokens and other secrets are masked. For a Custom connector, the full template is under Template YAML.
- Ingestion runs — each collection run: when it started, its status, how many records it collected, and the connector version. Select a run to see its full result. Select View collections for the totals Mesh holds from the connector (see View collections).
If the last run failed, an alert at the top of the page explains why.

View collections
Select View collections, next to the Ingestion runs heading, to see what the connector has brought into Mesh so far. The Collected data panel is the same one cloud connectors show on the Connectors page.

Schedule shows:
| Field | What it shows |
|---|---|
| Last run | When the connector's most recent ingestion run started. Never if it has not run yet |
| Sync stage | Initializing until a run completes, then Synchronizing. Stopped while the connector is disabled |
There's no Next run row. The agent collects on the interval set in the connector's settings, not on a schedule kept by Mesh.
Entities shows how many records of each type Mesh holds from this connector, for example Users, Groups, Machines or Machine identities. These are totals across every run, not the result of the last run. For what each run collected, use Ingestion runs.
This note appears on every connector. It doesn't mean something is wrong with this connector.
Edit a connector
Select Edit settings to open the connector's form with its current values. Stored secrets show as blank: leave them blank to keep them, or type new ones to replace them. Where the form offers Test connection, use it to check your changes, then select Save changes.
Disable or enable a connector
Select Disable connector to stop collection on the agent's next check-in. Its settings and run history are kept, and you can select Enable connector later to resume.
Delete a connector
Select Delete connector and type the connector's name to confirm. The agent stops collecting from it and its configuration is removed from the agent. Past runs stay stored, but are no longer shown.

If someone else changed the agent's connectors at the same moment, the delete is refused and you're asked to reopen the dialog, so you never remove something based on an out-of-date view.
Verify
- The agent shows Enrolled.
- Your connector shows Running, or its test ingestion succeeded on every endpoint.
- Data from your internal system appears in Mesh on its next collection.
Next step
Hand off to your operator if you haven't already: Run the edge agent. Or add more connectors to the same agent — one agent can serve several internal systems.