Just a couple of days ago, Microsoft released documentation about new capabilities of Entra Cloud Sync that allow you to provision users in Active Directory from Microsoft Entra ID. Essentially, you can take a cloud-only user and provision its counterpart on-premises. I wrote about that here.
Now, at the time of writing this article, the functionality has been announced in Preview only as a documentation update. However, the functions are not yet available from the UX unless you can figure out how to configure it, which I have and will show you in this article. Of course there are certainly some user scenarios I am missing in this article, but, my focus is on the core functionality of the feature.
Page Contents
Installing Entra Connect and Entra Cloud Sync
Now, if you look through the pre-requisites here, you may be put off by the sight of the requirement to install both the Entra Cloud Sync client and the Entra Connect Sync client. It’s odd, because if you have a cloud-only user and you want to provision a user back to on-premises AD, you can do so with just the Entra Cloud Sync agent (I’ve tested it), as well as add them to groups synced from Entra to AD.
I believe the core requirement for Entra Connect Sync is to specifically handle SOA conversation and Hybrid Group Memberships for objects that already have an on-prem footprint. This is because when Cloud Sync creates a new AD user from a Cloud-only user, instead of relying on the legacy onPremisesObjectIdentifier attribute (which is used by Entra Connect Sync), Cloud Sync creates a new achor/attribute (msDS-ExternalDirectoryObjectId), as seen here:
Essentially, if you are just syncing users from Entra ID to AD, as well as Cloud groups and their cloud-only group memberships, you can get by with just Entra Cloud sync. But if you are also syncing users from AD to Entra and need to manage hybrid group membership while provisioning a group from Entra to AD, then you must ensure Entra Connect sync is running; otherwise, Cloud sync will not be able to read the objectGUID of the user in AD, which would otherwise be synced to the onPremisesObjectIdentifier attribute in Entra which it reads from.
Activating the new UX in Entra
At the time of writing this, the new UX is not available to the general population of Entra admins. It’s currently gated behind preview. However, if you can now see it in your tenant, as it will be imminently available for you, when you go to “Scoping filters” you will see the scope settings for users and groups. Then, only when the scope settings for users are set to “enabled” will you be able to see the attribute mapping for users appear. The attribute mapping is the important bit to get right, which I cover in the next section.
Updating the attribute mapping for users
I originally had some trouble getting the “User” attribute mapping section enabled in the Cloud Sync configuration. To get this working, I had to manually update the synchronisation job schema via Microsoft Graph to include the required user attributes, which thankfully were already saved in the Synchronisation Templates, but not “activated” within the job. Of course doing this isn’t supported, and likely isn’t correct, as I had to update this for the “AAD2ADGroupProvisioning” job, which doesn’t even reference users.
While I added 49 source user attributes, 2 target user attributes and some user mappings, the crucial component was the “parentDistinguishedName” target attribute, which, without this configured in the schema, you are physically unable to enable the Entra sync scoping filter for the sync job. Only then, when the job was enabled for users, did the user mapping section become visible in the UX.
Here is a view of my attribute mapping:
Remember this is in preview, and the default mapping at the time of writing this is: (the rest I added manually, so may not reflect a true view when this is released).
Just in case the preview release of this uses the same group name formatting which appends a cutdown objectId to the display name, you should modify the attribute mapping for cn to be Source: DisplayName, Mapping: Direct. After you change the attribute mappings, when the user provisioning next syncs, the user WILL be updated.
Enabling the user scoping filters
To enable the user Scoping filter, select the scoping filter tab within your Cloud sync configuration. You can click Edit on this page, and it will launch you through the Wizard to configure.
This section is fairly self-explanatory. Just enable the User sync and click through the wizard to enable which Cloud-only users you want to sync to Active Directory.
The import bit is the target container attribute mapping. You can either use a constant value of the distinguished name of your OU, or, as I recommend you do, use an expression which can cater for Synced users whose SOA has changed and cloud-only users. This is that expression:
IIF(IsNullorEmpty([onPremisesDistinguishedName]), "CN=Users,DC=ocn,DC=local", Replace([onPremisesDistinguishedName], , "^.*?,(?=(?:CN|OU|DC)=)", , "", , )) You should just modify the distinguished name (OU path) within this expression to match your desired OU. Once done, complete the wizard and your scoping filters should be ready to go:
Provisioning the users from Entra ID to Active Directory
Once all the configurations are in place, you can test the user provisioning to Active Directory with the Provision on demand function in the Entra portal.
With your Cloud Sync configuration, click Provision on demand, select your user and click Provision. Here you can see me successfully provisioning a test user from Entra to Active Directory:
As you can see, that user now appears in my Active Directory:

