Zetect Admin Guide Back to zetect.inSwitch portal ⇄

Configuring Identity Sources

An identity source is a system that supplies your people, such as an HR system, a directory, a REST or SCIM service, or a file export. Add the source, tell the agent how to reach it, and map its fields to identity attributes. Syncs then create joiners, update movers and mark leavers inactive.

Prerequisite

An agent that can reach the source system, with a connector for it installed. See Deploying Agents.

Required permission

Identity → Identity Sources – View in an administrator group.

Limits

The source type can't be changed after the source is created.

Setting up a source

Setting up a source takes these steps, each described below:

  1. Add the source and choose its type.
  2. Fill in General, including the agent's connector name.
  3. Fill in Connection, including the status and manager fields.
  4. Map source fields to identity attributes in Attribute Mapping, with one field marked as the identifier.
  5. Optionally turn on group import in Groups. See Importing Source Groups.
  6. Select Run Now, check the result in Sync, and turn on a Schedule. See Running Source Syncs.

Adding a source

Add Identity Source panel

To add a source:

  1. Go to Identity → Identity Sources.
  2. Select Add Source. The Add Identity Source panel opens.
  3. Enter a Name, for example "Corporate Directory", and optionally a Description.
  4. Choose the Source Type:
    • REST API – pulls identities from a JSON REST endpoint.
    • SCIM 2.0 – connects to any SCIM 2.0 compliant identity provider or directory.
    • LDAP / Active Directory – syncs users from an LDAP directory.
    • Delimited File – imports identities from a CSV, TSV or pipe-delimited file over SFTP, HTTP or a local path on the agent's machine.
  5. Select Create Source.

The source is added to the list. Open it to finish the setup.

Opening a source

Identity source page

To open a source:

  1. Go to Identity → Identity Sources.
  2. Type in Search sources…, or select a type pill when sources of more than one type exist.
  3. Select the source's row, or select Configure from its ⋮ menu.

The page opens on the Sync section. The status bar under the title shows the source type, the last sync result (or Sync in progress) and whether the source is active. The sections on the left are Sync under Status; General, Connection, Attribute Mapping and Schedule under Setup; and Groups. A marker on Sync means the last sync failed or removals are waiting for review.

Configuring general settings

General section of an identity source

To configure general settings:

  1. Open the source and select General.
  2. Select Edit at the top of the page.
  3. Change the fields.
  4. Select Save changes, or Cancel to drop your edits.
FieldDescription
NameRequired. How the source appears in Zetect.
Connector NameRequired. The agent connector that runs this source's syncs. It is filled in from the name until you change it. Spaces aren't allowed.
DescriptionOptional. Shown under the source's name.
Connector TypeThe source type. It can't be changed after creation.
StatusActive or Inactive.
Chunk SizeUnder Advanced. Splits large syncs into batches of this many records. Recommended once a source has more than about 1,000 records. Leave it blank to sync all records in one pass.
Created / Last updatedWhen the source was added and last changed.

Configuring the connection

The Connection section tells the agent how to reach the source, and which source fields set each person's status and manager. Its fields depend on the source type.

Connection section of an identity source

To configure the connection:

  1. Open the source and select Connection.
  2. Select Edit.
  3. Fill in the Connection card for your source type.
  4. In Status and manager, set Status Field and Manager Match Attribute if the source supplies them.
  5. Select Save changes.

Give the source account read-only rights. A sync only reads the source.

LDAP connection fields

FieldDescription
LDAP Host / PortRequired host name or IP address, and the port (389 by default).
Use SSL / TLSTurn on for LDAPS, typically on port 636.
Base DNRequired. Where in the directory to search, for example OU=Staff,DC=example,DC=com.
Bind DN / Bind PasswordThe service account used to read the directory.
User Search FilterWhich objects count as people, for example (objectClass=person).
Username AttributeThe directory attribute that holds the login name, such as uid or sAMAccountName.

REST API and SCIM 2.0 connection fields

FieldDescription
Base URLRequired. The service's address, for example https://api.example.com. For SCIM, people are read from /Users under this address.
Authentication TypeAPI Key (Header Name and API Key), Bearer Token (Token), OAuth 2.0 (Token URL, Client ID, Client Secret, Scope), Basic (username / password), or No authentication.
Users EndpointREST only. The path of the users list, relative to the base URL, for example /users.
Response Array PathREST only. Where the list of people sits in the response, for example data. Leave it empty if the response is the list itself.
PaginationREST only. None — one request, Page number, Offset / limit, Cursor or Next link URL. Each type shows the parameter names it needs and a line explaining when paging stops.
Page SizeHow many records to ask for per request (100 by default).

Delimited File connection fields

FieldDescription
File SourceSFTP, HTTP or Local Path on the agent's machine.
File Path / URLRequired. Where the file is, for example /exports/users.csv.
Host / Port / Username / PasswordSFTP only. The server and account used to fetch the file. The port defaults to 22.
DelimiterComma (,), Semicolon (;), Tab or Pipe (|).
First RowTick Contains column headers if the first row names the columns.

Status and manager fields

FieldDescription
Status FieldThe source field that controls each person's status, for example status or isActive. Values such as inactive, false, disabled or terminated make the person inactive, in any case. See Source status values. Leave it blank and the sync never changes anyone's status; new people are created active.
Manager Match AttributeThe identity attribute that the value of the manager attribute is matched against to find each person's manager. For example, if manager holds the manager's email, set this to email. Leave it blank to skip finding managers.

Mapping source fields

Attribute Mapping maps source fields onto identity attributes, for example sAMAccountName to username. It also says which field identifies a person, so each sync updates existing people instead of creating duplicates.

Attribute Mapping section of an identity source

To map source fields:

  1. Open the source and select Attribute Mapping.
  2. Select + Add Row for each field you want to import.
  3. Enter the source field:
    • Field – type the source field name.
    • Expression – combine fields with ${fieldName} tokens, such as ${givenName} ${surname}. Text without tokens is used as a fixed value.
  4. Choose the Zetect Attribute the value goes into.
  5. Tick Identifier on the field that uniquely identifies a person, such as the username or employee ID.
  6. Select Remove on any row you don't need.
  7. Select Save Mappings, or Discard to undo your changes.

The new mapping applies from the next sync. During a sync, a record whose identifier value matches an existing person updates that person. Otherwise a new identity is created. A record with no identifier value is counted as an error.

For example, a directory mapping:

sAMAccountNameusername (Identifier)
givenNamefirstName
snlastName
mailemail
${givenName} ${sn}displayName (Expression)
managermanager

Deleting a source

To delete a source:

  1. Go to Identity → Identity Sources.
  2. Open the ⋮ menu on the source's row and select Delete source.
  3. Confirm.

Troubleshooting

  • Run Now can't start the sync. A message appears under the status bar. The sync runs on the agent, so check that the agent is online, can reach the source, and has a connector matching Connector Name.
  • Every record fails. Check that a mapping is marked Identifier and that the source fills in that field for every record.
  • New people are skipped. The licensed number of users may be reached. Each skipped person is counted as an error.