Identity & Access Management
On-prem Active Directory: Setup for user provisioning
User provisioning is essential to keep access and identity in sync during onboarding, offboarding, and role changes. With Atomicwork, you can automate user provisioning to on-premise Active Directory (AD) using Microsoft Entra's API-driven provisioning framework, eliminating manual effort and reducing security risks.
Based on updates to any system of record, such as your HR or payroll platforms, you can trigger workflows in Atomicwork that provision users in on-prem AD, sync them to Azure AD through AD Connect, and start follow-up actions such as notifications or access assignments.
This ensures:
- Consistency: User data is reliably synced across systems.
- Efficiency: Workflows replace manual steps and reduce provisioning time.
- Security: Accounts are automatically deactivated or updated when needed.
- Scalability: The process handles a large number of provisioning tasks without extra overhead.
How it works
The integration uses Microsoft's secure, SCIM-based provisioning API and Atomicwork's webhook actions in workflows to automate user provisioning.
-
Your system of record, such as an HRIS, registers an event like a new hire or role change.
-
Atomicwork captures the event through a service catalog item and creates a new request.
-
The request triggers the user provisioning workflow in Atomicwork, which:
- Authenticates through a registered service principal to fetch an OAuth token.
- Sends a SCIM API request with user details to the Azure provisioning app endpoint for on-prem AD. The API payload includes a unique identifier called
externalIdto ensure identity consistency across systems and avoid duplicate provisioning.
-
The Microsoft Entra Provisioning Agent, installed on your on-prem server, processes the request and creates or updates the user in AD.
-
Azure AD Connect syncs the user to Azure AD.
-
Atomicwork proceeds with any additional actions, such as user creation within Atomicwork or sending alerts to relevant teams.
[!NOTE] This setup creates the AD account and syncs it to Entra ID. Mailbox provisioning must be handled separately by your Exchange topology, such as Exchange Online or Exchange hybrid, and should be tracked as a downstream child ticket.
Prerequisites
Before you begin, confirm:
- Microsoft Entra ID P1 license with a seat for every user you will provision. P1 is also required for Atomicwork to poll provisioning logs.
- A domain-joined Windows Server host for the Entra provisioning agent. Use Windows Server 2016, 2019, or 2022 with 4 GB or more RAM, .NET Framework 4.7.1 or later, and network access to your domain controllers on TCP/389 (LDAP) and TCP/3268 (Global Catalog).
- AD schema at Windows Server 2016 or later. The
msDS-ExternalDirectoryObjectIdattribute must be present. - Notification email set on the provisioning app. Jobs are quarantined if this is blank.
- Matching attribute configured. In the Entra provisioning app's attribute mappings, set
employeeId, or your equivalent, as the matching attribute forexternalId.
What is the externalId and why does it matter?
The externalId is a core concept in SCIM-based identity provisioning. It serves as a client-side identifier to uniquely match a user across different systems.
On-prem AD does not include an externalId attribute by default, but it can be mapped to fields like employeeID or custom extension attributes.
This mapping is crucial to:
- Avoid duplicate user creation when retries happen.
- Enable idempotent provisioning behavior.
- Support reliable matching across sync cycles.
Azure AD Connect Cloud Provisioning, for instance, typically maps externalId to the employeeID field in AD.
Setup for onboarding user provisioning
Step 1: Create an enterprise application for provisioning in Microsoft Entra
-
Go to the Microsoft Entra admin portal and navigate to Enterprise Applications > New application.
-
Search for and select API-driven provisioning to on-premises Active Directory.
-
Provide a name for your application and create the app.
-
Grant the required permissions:
- SynchronizationData-User.Upload: Allows Atomicwork to send user data to Microsoft Entra for provisioning.
- ProvisioningLog.Read.All: Allows Atomicwork to poll provisioning logs to confirm the user was created before proceeding.
-
Open the newly created app and select the Provisioning tab.
-
Under Settings, set the notification email. This is required. Jobs are quarantined if this is blank.
-
Configure attribute mappings to align the SCIM user schema with your on-prem AD attributes. Set the matching attribute, typically
employeeIdtoexternalId, so retries update the existing user instead of creating duplicates. -
Click Start provisioning to activate the service.
-
Copy the Provisioning API Endpoint to your clipboard.
For additional details or FAQs, see Microsoft's guide to creating the API-driven inbound provisioning app.
Step 2: Install the Microsoft Entra provisioning agent
-
Download the agent from the Entra portal and install it on your domain-joined server.
-
Configure the agent in the Entra admin center and authenticate it with your Azure AD account.
For detailed steps, see Microsoft's guide to installing the Microsoft Entra provisioning agent.
Step 3: Configure a service principal to call the provisioning app
To access the provisioning app securely, configure a service principal in Azure AD. See Microsoft's guide to granting access to the inbound provisioning API for further details.
Copy the client ID, tenant ID, and the created client secret.
Step 4: Set up a webhook-based workflow in Atomicwork
-
Go to your Atomicwork tenant, such as
https://yourcompany.atomicwork.com, and navigate to Settings > Your Workspace name > Workflows. -
Create a new workflow for on-prem AD user provisioning.
-
Set up the trigger based on how your system-of-record data enters Atomicwork, such as through a service catalog request.
-
Use the Azure action - Generate unique email from name to create the user email ID from the given name information.
-
Configure a Create a webhook action to generate a token to access the provisioning app:
-
Choose the POST method.
-
Use the following API URL, replacing
{tenant_id}with your tenant ID:https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token -
Include the client ID and client secret from the service principal in the request body:
{ "client_id": "{client_id}", "client_secret": "{client_secret}", "scope": "https://graph.microsoft.com/.default", "grant_type": "client_credentials"
-
Setup for offboarding user provisioning
To manage user provisioning during offboarding:
-
Follow steps 1 to 3 from the onboarding setup.
-
In step 4, when adding the SCIM payload, set the
activeproperty tofalse.
After sending the disable, add these hardening steps to the workflow:
- Revoke active sessions. Setting
active: falseblocks new sign-ins but does not terminate existing cloud sessions. Add a webhook action to call Microsoft Graph'srevokeSignInSessionsendpoint on the user to end active sessions immediately. - Remove licenses. Remove the user from licensing groups so their licenses are released.
- Convert the mailbox to shared. If you use Exchange Online, convert the mailbox to shared so it can be delegated and retained.
[!TIP] Disable accounts instead of deleting them. Deletion should follow a separate policy-driven timeline, typically 30-90 days after disable, once mailbox contents are archived and files are reassigned.
By combining Microsoft Entra's provisioning framework with Atomicwork's workflow engine, organizations can automate user onboarding and offboarding into on-premises AD and Azure AD. This improves consistency, reduces operational overhead, and strengthens employee lifecycle experiences.
