Data Sources & Connectors
Data Sources connect external HR and directory systems as master sources to roleALPHA. Once a connector claims a target module, its entities are synchronized automatically — creating, editing and deleting these entities is locked for everyone, as the external system has sole data ownership. The lock applies to manual editing in the UI, to administrators and to the AI assistant rAlph (it cannot create drafts on synced entities). Only the sync system itself keeps writing.
What changes with a connector?
Section titled “What changes with a connector?”| Property | Without connector | With connector |
|---|---|---|
| Create entities | Manually / via rAlph | External system only (🔒 manual + rAlph locked) |
| Edit entities | Manually / via rAlph | Locked (🔒 external system) |
| Delete entities | Manually | Locked (🔒 source system only) |
| JSON schema | Freely configurable | Determined by connector |
| Sync source | — | External service (e.g. Entra ID) |
| Sign-in address | Maintained explicitly only | Follows the person record automatically (🔒 manual editing locked) |
Entities synchronized via connector show a cloud badge with the external system’s name in the list view.
The sign-in address follows. If a data source syncs people, it also owns the sign-in address (Manage sign-in in user management): the field is locked there, and after every sync the address is taken from the person record. Without that, an address change in the source system would mean a permanent lockout — the lock prevents the repair too. Remove the data source and the field is editable again straight away; the last address taken over stays.
Manual persons and duplicates
Section titled “Manual persons and duplicates”When a data source supplies persons (Entra ID, SuccessFactors, LDAP, SAP FI, MS Dynamics), there is afterwards only one person per email address: the one from the source. Upper and lower case do not matter, and the name does not count at all.
- First run, exactly one matching person: The person created by hand is taken over. They keep their ID, roles, relationships and sign-in; their fields then come from the source, and fields the source does not supply are lost.
- The person already exists twice, or several match: After every full run, the manual entries are merged. Relationships (including as participants), sign-ins, visibility grants, highlander lists, watches, @-mentions, effort bookings, demand assignments, signals and rALPH conversations move to the person from the source. A relationship the source person already has in exactly the same form is not duplicated.
- Nothing is deleted without confirmation. For every emptied manual entry, a delete draft with the reason “Duplicate” is created. It is never auto-approved, not even with Auto-approve sync drafts; it waits under Pending drafts until a person confirms it.
The sync history counts “duplicates merged” and “deletions awaiting confirmation”. To resolve lists the cases that stay: the same address on two persons in the source, a service that could not be reached while moving (the next full run tries again), and persons that now have two sign-in accounts. Merge those accounts in user management.
Deliberately not: fields of the manual entry are not taken over, incremental runs do not merge, and decisions in completed approval rounds stay with the old person.
One data source per target module: Each target module (People, Organigramm, Cost centers, …) may be served by at most one data source. Once, say, Entra ID syncs People, SuccessFactors (or SAP FI) cannot additionally be set up for People — that target is disabled in the setup dialog and saving is rejected with a notice. To switch the master, first remove the existing data source or adjust its targets. This guarantees two systems never compete over the same entities.
Setting up Microsoft Entra ID
Section titled “Setting up Microsoft Entra ID”Entra ID (formerly Azure Active Directory) syncs employees as Persons and groups as Organigramm entries.
Prerequisites
Section titled “Prerequisites”- Create an App Registration in Azure Portal
- Grant the
User.Read.All,GroupMember.Read.AllandMailboxSettings.Readpermissions (all Application) and provide admin consent - Create a client secret
roleALPHA needs MailboxSettings.Read to tell mailboxes from people. Without it the sync keeps running but imports mailboxes like persons. Test connection shows whether detection is active. If the permission was only just granted, the next run fetches a new token by itself. Exchange Online sometimes takes up to an hour to pick up new app permissions, though; until then the run reports “granted, but rejected by Exchange”.
Which accounts become persons
Section titled “Which accounts become persons”Entra ID also lists shared mailboxes, rooms and equipment as users. roleALPHA reads the mailbox type of each account and does not import these three. If the type cannot be determined, the account stays a person.
To Entra ID, an admin’s second account is an ordinary user account. Enter such accounts in step 3 under Accounts that do not become persons: one address or pattern per line, for example mc*@company.com. They are compared with the email address and the sign-in name. After a change, the next run checks all accounts.
Profile photos
Section titled “Profile photos”If a person from Entra ID has no picture in roleALPHA yet, every full run takes their photo from Entra ID. A picture that is already there stays: if someone uploads their own photo, Entra ID does not overwrite it, even if the photo there changes later. To get the Entra ID photo, remove your own picture; the next full run then fills it. Persons without a photo in Entra ID keep their initials. The User.Read.All permission is enough. The sync history shows how many photos a run took over.
One source of truth
Section titled “One source of truth”Once a data source is connected, it alone decides about the persons from Entra ID. If a person already imported drops out because the account was deleted, detected as a mailbox or excluded, the person is deleted like any other change in the source. With Auto-approve sync drafts this happens at once, otherwise the delete draft waits under Pending drafts. A pattern that is too broad therefore deletes real persons, so keep patterns as narrow as possible.
The sync cleans up drafts from earlier runs itself. A full run discards every open connector draft it no longer needs, such as a create draft stuck on a missing mandatory field or one for an account that has since been excluded. An incremental run does so only for the accounts it receives. Drafts created by a person are left alone. Persons created by hand with the same address as a person from Entra ID are merged (see Manual persons and duplicates).
How Entra ID recognizes and maps entities
Section titled “How Entra ID recognizes and maps entities”On the first sync, ra-connect stores the AAD Object ID as _syncId in each entity’s descJsonb data. On every subsequent sync, ra-connect loads all existing roleALPHA entities with _syncSource = "EntraID" and builds a map AAD-ID → roleALPHA-UUID — identical to the CSV importer pattern. For each record, ra-connect then decides:
| Condition | Action |
|---|---|
| AAD ID not known in roleALPHA | CREATE draft with new UUID |
| AAD ID already exists | UPDATE draft with known UUID |
@removed in delta + known | DELETE draft → cascades all relationships |
@removed + not known | Skipped (already deleted) |
On full syncs, entities that exist in roleALPHA but are no longer in Entra ID are also deleted.
No separate mapping table: The mapping comes directly from descJsonb._syncId in the entity data — no additional storage, no synchronisation problem.
- Navigate to Settings → Data & Structure → Data Sources
- Click Connect next to Microsoft Entra ID
- Fill in the setup dialog:
- Step 1 – Credentials: Enter Directory ID (Tenant), Application ID (Client), and Client Secret
- Step 2 – Sync Targets: Select People and/or Organigramm
- Step 3 – Options: Configure sync interval, conflict strategy, and auto-approval
- Save — the first sync starts automatically
Sync behavior
Section titled “Sync behavior”- First sync: All users and groups are imported as drafts.
- Subsequent syncs (delta): Only changes since the last sync are transferred.
- Fields: Default mapping imports name, email, title, department, phone, and office location.
- Reporting line: The manager recorded in Entra ID becomes a
MANAGESrelationship (“manages” / “reports to”, source = manager, target = person). It waits as a draft for approval and then appears on both persons as Manager and Direct reports.
Setting up SAP SuccessFactors
Section titled “Setting up SAP SuccessFactors”SAP SuccessFactors (Employee Central) syncs employees as Persons, departments (FODepartment) as Organigramm entries, and the managerId as a reporting line (MANAGES, “manages” / “reports to”) between persons.
Prerequisites
Section titled “Prerequisites”- The OData API v2 must be enabled in your SuccessFactors instance
- An API user with read access to the
UserandFODepartmententities - The API server URL for your data center (e.g.
https://api4.successfactors.com) and the Company ID
Authentication
Section titled “Authentication”The connector supports two methods — selectable in the setup dialog:
| Method | Fields | When to use |
|---|---|---|
| Basic | API username + password | Quick start; SuccessFactors internally combines to user@CompanyID |
| OAuth2 (SAML assertion) | OAuth client ID (API key), OAuth user ID, private key (PEM) | Recommended for production; the connector automatically fetches a signed SAML assertion from the SF IdP and exchanges it for an access token |
Password and private key are stored encrypted (AES-256-GCM) and are never returned to the UI in plaintext.
How SuccessFactors recognizes and maps entities
Section titled “How SuccessFactors recognizes and maps entities”As with Entra ID, ra-connect stores the external ID as _syncId in the descJsonb data — the userId for persons and the externalCode for departments. The _syncSource is set to SuccessFactors. Before each sync, a map external ID → roleALPHA-UUID is built from this:
| Condition | Action |
|---|---|
| ID not known in roleALPHA | CREATE draft with new UUID |
| ID already exists | UPDATE draft with known UUID |
status = inactive/terminated + known | DELETE draft → cascades all relationships |
| Full sync: in roleALPHA but no longer in SuccessFactors | DELETE draft |
- Navigate to Settings → Data & Structure → Data Sources
- Click Connect next to SAP SuccessFactors
- Fill in the setup dialog:
- Step 1 – Credentials: API server URL, Company ID, authentication method, and the corresponding fields
- Step 2 – Sync Targets: Select People, Organigramm and/or Capacity & absences
- Step 3 – Options: Configure sync interval, conflict strategy, and auto-approval
- Save — the first sync starts automatically
Sync behavior
Section titled “Sync behavior”- First sync (full): All active employees and departments are imported as drafts, then manager relationships are created.
- Subsequent syncs (delta): Only records with a changed
lastModifiedDateTimesince the last sync are transferred. - Fields: Default mapping imports name, email, title, department, division, phone, and office location — plus, when demand planning is active, weekly hours, employment rate and employment type.
Capacity & absences as a sync target
Section titled “Capacity & absences as a sync target”This is the one target that masters no entities: it delivers period-specific working time and absence periods to resource planning. Demands can therefore still be created and edited normally — nothing gets locked.
The absence type (leave, sickness, …) is discarded on import; roleALPHA has no field for it. What that means, and which rules apply to the nightly run, is described in Capacity from an HR system.
Setting up LDAP / Active Directory
Section titled “Setting up LDAP / Active Directory”Connects a classic Active Directory or an LDAP directory service (e.g. OpenLDAP): users are synced as Persons, groups as Organigramm entries, and the manager attribute as a reporting line (MANAGES, “manages” / “reports to”).
Prerequisites
Section titled “Prerequisites”- A service account (bind DN) with read access to the directory tree
- The server URL —
ldap://host:389(plaintext) orldaps://host:636(TLS, recommended) - The search base (base DN) under which users and groups live (e.g.
dc=company,dc=com)
Connection & filters
Section titled “Connection & filters”| Field | Description | Default |
|---|---|---|
| Server URL | ldap:// or ldaps:// incl. port | — |
| Bind DN | Service account, e.g. cn=svc-readonly,ou=Service,dc=company,dc=com | — |
| Bind password | Service account password (stored encrypted) | — |
| Search base | Base DN for the search | — |
| User filter | LDAP filter for persons | (&(objectCategory=person)(objectClass=user)) |
| Group filter | LDAP filter for groups | (objectClass=group) |
For OpenLDAP instead of AD, adjust the filters, e.g. users
(objectClass=inetOrgPerson)and groups(objectClass=groupOfNames).
For ldaps:// with a self-signed certificate, certificate verification can optionally be disabled (checkbox in the dialog).
How LDAP recognizes and maps entities
Section titled “How LDAP recognizes and maps entities”As the stable external ID, ra-connect uses objectGUID (Active Directory, binary → GUID string) or entryUUID (OpenLDAP), falling back to the DN. It is stored as _syncId with _syncSource = "LDAP" in the descJsonb data. Before each sync, a map objectGUID → roleALPHA-UUID is built from this:
| Condition | Action |
|---|---|
| ID not known in roleALPHA | CREATE draft with new UUID |
| ID already exists | UPDATE draft with known UUID |
| Full sync: in roleALPHA but no longer in the directory | DELETE draft → cascades all relationships |
The manager relationship comes from the manager attribute (a DN pointing to another user) — resolved to MANAGES relationships within a sync run (source = manager, target = person); each waits as a draft for approval.
- Navigate to Settings → Data & Structure → Data Sources
- Click Connect next to LDAP / Active Directory
- Fill in the setup dialog:
- Step 1 – Credentials: Server URL, bind DN, bind password, search base, and optional filters
- Step 2 – Sync Targets: Select People and/or Organigramm
- Step 3 – Options: Configure sync interval, conflict strategy, and auto-approval
- Save — the first sync starts automatically
Sync behavior
Section titled “Sync behavior”- First sync (full): All matching users and groups are imported as drafts, then manager relationships are created.
- Subsequent syncs (delta): Only entries with a changed
whenChanged(Active Directory; OpenLDAP:modifyTimestamp) since the last sync. - Fields: Default mapping imports name, email, title, department, phone, and office location.
Setting up SAP FI
Section titled “Setting up SAP FI”SAP FI connects Financial Accounting/CO from SAP S/4HANA and primarily syncs cost centers. Optionally, people (business partners) and org units (cost center standard hierarchy) can be imported too. The connection uses the OData v2 standard APIs (e.g. API_COSTCENTER_SRV, API_BUSINESS_PARTNER).
Prerequisites
Section titled “Prerequisites”- Reachable OData v2 endpoints of the S/4HANA instance
- An API user with read access to cost center master data
- The OData server URL and the company code
How SAP FI recognizes and maps cost centers
Section titled “How SAP FI recognizes and maps cost centers”The external cost center number (CostCenter) is stored as _syncId with _syncSource = "SAP-FI" in the descJsonb data. Before each sync a map CostCenter → roleALPHA-UUID is built (CREATE when unknown, UPDATE when known, full-sync DELETE for removed records). Because the cost center schema requires the mandatory field costCenterType, the connector sets the default value “Hauptkostenstelle”; further fields (description, company code, responsible, parent hierarchy) also land in descJsonb.
- Navigate to Settings → Data & Structure → Data Sources
- Click Connect next to SAP FI
- Fill in the setup dialog:
- Step 1 – Credentials: OData server URL, company code, API username and password
- Step 2 – Sync Targets: Cost centers (default) and optionally People/Organigramm
- Step 3 – Options: Configure sync interval, conflict strategy, and auto-approval
- Save — the first sync starts automatically
Setting up MS Dynamics
Section titled “Setting up MS Dynamics”MS Dynamics connects Microsoft Dynamics 365 Finance & Operations and primarily syncs cost centers (the “CostCenter” financial dimension). Optionally also workers (Workers) and org units (OMOperatingUnits). The connection uses the OData v4 data entities and authenticates via the Azure AD client-credentials flow.
Prerequisites
Section titled “Prerequisites”- An app registration in Azure AD with access to the Dynamics environment
- Directory (tenant) ID, application (client) ID, and a client secret
- The Dynamics environment URL (e.g.
https://contoso.operations.dynamics.com)
How MS Dynamics recognizes and maps cost centers
Section titled “How MS Dynamics recognizes and maps cost centers”The CostCenterId is stored as _syncId with _syncSource = "MS-Dynamics". Before each sync a map CostCenterId → roleALPHA-UUID is built (CREATE/UPDATE/DELETE as with SAP FI). Cost centers flagged as deactivated via IsSuspended produce a DELETE draft. Here too the connector sets the mandatory field costCenterType to “Hauptkostenstelle”.
- Navigate to Settings → Data & Structure → Data Sources
- Click Connect next to MS Dynamics
- Fill in the setup dialog:
- Step 1 – Credentials: Dynamics environment URL, directory ID, application ID, and client secret
- Step 2 – Sync Targets: Cost centers (default) and optionally People/Organigramm
- Step 3 – Options: Configure sync interval, conflict strategy, and auto-approval
- Save — the first sync starts automatically
Test run before the first sync
Section titled “Test run before the first sync”Test run on the card of a data source counts how much the sync would import — for example “142 persons, 18 organisational units”. Nothing is created and no draft is made; only counts are requested, no names. Only the chosen targets are counted (persons, org chart). For Entra ID and MS Dynamics it adds “before mailboxes, exclusions and leavers”: the sync sorts these out later, so the number is an upper bound. There is no test run for SAP FI. If it fails, the connection is usually wrong — the message names the reason.
Auto-approve sync drafts
Section titled “Auto-approve sync drafts”By default, imported data lands as drafts in the normal approval flow. With the “Auto-approve sync drafts” option, drafts are approved by ra-connect immediately after import — no manual step required.
| Setting | Behavior |
|---|---|
| Disabled (default) | Drafts appear in the Drafts view for review |
| Enabled | Drafts are approved immediately after creation — data is visible right away |
When to enable?
- The tenant uses liberal approval mode (any tenant user may approve) — only then does ra-connect have the necessary rights
- You fully trust the external system as the master source
- You want no manual review step between import and visibility
When to leave disabled?
- The tenant uses consensus, consent, or highlander mode — auto-approval would be rejected and logged as a warning
- You want to review imported data before publishing (e.g. on the first import)
Note: With auto-approval enabled, the sync log shows “Auto-approve complete: X/Y approved”. Failed individual approvals generate a warning log entry but do not abort the sync.
Required fields apply to syncs too
Section titled “Required fields apply to syncs too”The platform enforces the entity type schema’s required fields on publish (see JSON Schema for Entity Types). The sync therefore checks each record beforehand: if a required field is missing or a value is invalid, no draft is created. The record is skipped and named in the sync history, for example “notifications: First name missing”.
Correct such records in the source; roleALPHA does not invent values. In Entra ID this is typical for accounts with a one-word display name and no first or last name. The next run imports the account once it is complete.
If auto-approval fails for another reason, such as the approval mode, the draft stays put and the run is marked Partial instead of successful.
Sync history and logs
Section titled “Sync history and logs”In the active connector’s tile you’ll find the Sync History (last 5 jobs with status and stats). It also counts what a run did not import: mailboxes, excluded and incomplete accounts, and failed approvals. The accounts you need to resolve in the source are listed there with name and reason.
The Platform Admin can view detailed logs via Settings → Services → Data Sources → Logs — including live tail and download.
What happens when an entity is deleted?
Section titled “What happens when an entity is deleted?”When a person or department is deleted in Entra ID (delta sync: @removed), ra-connect creates a DELETE draft. After approval, roleALPHA automatically removes:
- The entity itself (person / organigramm entry)
- All relationships involving it (e.g. EXECUTES, MEMBER_OF)
- Visibility grants for the entity
- Open drafts of the entity
- @-mentions referencing the entity
The Orphan Reaper (runs automatically daily) cleans up any remaining orphans if a sync job is interrupted.
Removing a connector
Section titled “Removing a connector”Remove lifts the master binding. Existing entities are retained and become manually editable again. The JSON schema lock is lifted.
Troubleshooting
Section titled “Troubleshooting”| Issue | Solution |
|---|---|
| Connector auto-disabled | 3 consecutive failures (after a failure the schedule waits one sync interval before retrying) → check credentials, then save under Edit; this re-enables it and resets the failure count |
| The client secret field is empty when editing | Intended: the stored secret is never shown. Leaving it empty keeps it; only a new value replaces it |
CONNECTOR_MANAGED_ENTITY when editing | Entity is managed by connector — make changes directly in the source system |
| No badge on entities | First sync not yet complete or drafts not yet approved |
| Auto-approval fails (in logs) | Approval mode is more restrictive than liberal — disable the option or check approval mode |
| Drafts appear despite auto-approval | Approval mode blocks it → approve drafts manually in the Drafts overview |
“Mailbox detection off” although MailboxSettings.Read is granted | If the hint says “granted, but rejected by Exchange”, wait up to an hour and sync again. If it persists, an application access policy in Exchange Online restricts the app. If it says “lacks the permission”, check the admin consent for the application permission |