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 via AD Connect, and kick off any 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: Handles large number of provisioning tasks without extra overhead.
How it works
The integration leverages Microsoft's secure, SCIM-based provisioning API and Atomicwork's webhook actions in workflows to automate user provisioning. Here's how it works:
Your system of record (e.g., an HRIS) registers an event like a new hire or role change.
This is captured in Atomicwork via a service catalog item to create a new request.
The request triggers the user provisioning workflow in Atomicwork which:
Authenticates using 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 will include 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 then syncs the user to Azure AD.
Atomicwork proceeds with any additional actions like user creation within Atomicwork or sending alerts to relevant teams.
Note on mailbox provisioning: This setup creates the AD account and syncs it to Entra ID. Mailbox provisioning has to be handled separately by your Exchange topology (Exchange Online or Exchange hybrid) and should be tracked as a downstream child ticket.
Prerequisites
Before you begin, confirm:
Microsoft Entra ID P1 licence with a seat for every user you'll provision. P1 is also required for Atomicwork to poll provisioning logs.
A domain-joined Windows Server host for the Entra provisioning agent — 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 — required; jobs are quarantined if this is blank. Configured in Step 1 below.
Matching attribute configured — in the Entra provisioning app's attribute mappings, set
employeeId(or your equivalent) as the matching attribute forexternalId. Configured in Step 1 below.
What is the externalId and why does it matter?
The externalId is a core concept in SCIM-based (System for Cross-domain Identity Management) identity provisioning. It serves as a client-side identifier to uniquely match a user across different systems.
While on-prem AD does not include an externalId attribute by default, it can be mapped to fields like employeeID or any 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.
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
employeeId↔externalId) 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 regarding the app configuration, refer to Microsoft's article on 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 centre and authenticate it with your Azure AD account. Refer to Microsoft's article on installing the Microsoft Entra provisioning agent for detailed steps.
Step 3: Configure a service principal to call the provisioning app
To access the provisioning app securely, configure a service principal in Azure AD. Refer to Microsoft's article on granting access to the inbound provisioning API for further details.
Copy the client ID, tenant ID, and the created client secret.
Step 4: Setup a webhook-based workflow in Atomicwork
Go to your Atomicwork tenant (eg. 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 — for example, 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 and paste https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token as the API URL, updating the tenant ID.
Include the client ID and client secret from the service principal under Body.
{ "client_id": "{client_id}", "client_secret": "{client_secret}", "scope": "https://graph.microsoft.com/.default", "grant_type": "client_credentials" }Test the connection and click Done.
Configure another webhook action to create/update the user in on-prem AD:
Choose the POST method and paste the Provisioning API Endpoint from your app.
Add the following headers:
Authorization: Bearer {access_token}— the access token will be available as an output placeholder from the previous action.Content-type: application/scim+json
Add the SCIM payload with the required placeholders under Body. Ensure
externalIdis mapped to the correct attribute from your input data (eg.employeeId).{ "schemas": ["urn:ietf:params:scim:api:messages:2.0:BulkRequest"], "Operations": [ { "method": "POST", "bulkId": "bulk-user-create", "path": "/Users", "data": { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User" ], "externalId": "{{request.service_item.employee_id}}", "userName": "{{action.response.body.email}}", "active": true, "name": { "formatted": "{{request.service_item.employee_name}} {{request.service_item.last_name}}", "familyName": "{{request.service_item.last_name}}", "givenName": "{{request.service_item.employee_name}}" }, "displayName": "{{request.service_item.employee_name}} {{request.service_item.last_name}}", "nickName": "{{action.fetch_email.response.body.email?split('@')[0]}}", "emails": [ { "value": "{{action.response.body.email}}", "type": "work", "primary": true } ], "title": "{{request.service_item.position_title}}", "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": { "department": "{{request.service_item.users_department}}", "manager": { "value": "{{action.fetch_manager.response.body.employeeId}}", "displayName": "{{action.fetch_manager.response.body.givenName}} {{action.fetch_manager.response.body.surname}}" } } } } ], "failOnErrors": null }Test the connection and click Done.
Add a Wait action to allow the provisioning agent to write the account and for up-sync to publish it to Entra ID. Entra Cloud Sync typically completes in 5–10 minutes; Entra Connect Sync can take up to 30 minutes.
Follow the wait with the Azure action - Get user details from email to confirm the user exists in Entra ID before proceeding. If the user isn't found, raise an exception for manual review instead of continuing.
Use the Azure action - Reset a user's password to either auto-generate a password or force the user to reset it on the next login.
Notify the user of the update by using the Send an email action with the required information.
Add additional actions to the workflow to suit your onboarding flow.
Click Publish to activate the workflow.
Setup for offboarding user provisioning
To manage user provisioning during offboarding:
Follow steps 1 to 3 as above.
In step 4, when adding the SCIM payload, set the
activeproperty to false.
After sending the disable, add these hardening steps to the workflow:
Revoke active sessions. Setting
active: falseblocks new sign-ins but doesn't terminate existing cloud sessions. Add a webhook action to call Microsoft Graph'srevokeSignInSessionsendpoint on the user to end active sessions immediately.Remove licences. Remove the user from licensing groups so their licences are released.
Convert the mailbox to shared (if using Exchange Online) so it can be delegated and retained.
Recommendation: Disable, don't delete.
Deletion of accounts should follow a separate policy-driven timeline (typically 30–90 days after disable) once mailbox contents are archived and files are reassigned.
By combining Azure Entra's provisioning framework with Atomicwork's workflow engine, organizations can fully automate the user onboarding and offboarding process into on-premises AD and Azure AD. This ensures consistency, reduces operational overhead, and enhances employee lifecycle experiences.
