Writeback is the reverse direction of hybrid identity. In the previous post, Entra Connect synchronized users, groups, and passwords from on-premises Active Directory to Microsoft Entra ID. Writeback moves data in the opposite direction — from the cloud back to your on-premises AD.
Three writeback types matter in a modern hybrid environment:
| Writeback | What It Does | Why You Need It |
|---|---|---|
| Password | Cloud password changes/ resets are written back to on-premises AD in real time | Enables Self-Service Password Reset (SSPR); users reset passwords from anywhere |
| Device | Selected device registrations are represented as msDS-Device objects in AD |
Specific AD FS device-access and Windows Hello hybrid certificate-trust scenarios; not a general prerequisite for hybrid join |
| Group (M365) | Microsoft 365 groups are created in on-premises AD | Mail-enabled security groups for hybrid Exchange; deprecated for cloud-only groups |
Important deprecation notice: Group Writeback v2 in Entra Connect Sync is deprecated. Microsoft recommends using Entra Cloud Sync for provisioning cloud security groups to on-premises AD. If you need Microsoft 365 groups written back, Group Writeback v1 is still supported through Entra Connect Sync. Read the group writeback section carefully before enabling.
Prerequisites
This post builds on the previous one. Before starting:
- Microsoft Entra Connect v2 installed and syncing (Post #2)
- Password hash sync enabled and verified
- At least Microsoft Entra ID P1 license (all writeback features require P1 or P2)
- Hybrid Identity Administrator account in Entra ID
- Enterprise Admin credentials for on-premises AD
- Initial sync cycle completed (all users and groups visible in cloud)
Password Writeback
Password writeback synchronizes password changes made in the cloud back
to on-premises AD. When a user changes or resets their password through
the SSPR portal (https://aka.ms/sspr), it is written to on-prem AD in
real time via the Entra Connect Azure Service Bus relay.
How It Works
User → SSPR portal → Entra ID → Azure Service Bus → Entra Connect
→ AD DS (password updates in real time)
The connection is outbound only from the Entra Connect server. No inbound firewall rules are needed. The Entra Connect server opens a persistent outbound connection to an Azure Service Bus relay, and password changes flow through it synchronously — the user sees immediate feedback if the new password violates on-premises AD policy.
Step 1 — Verify the actual connector and permissions
Identify the AD DS connector account from the installed Entra Connect configuration; do not guess it from an MSOL_* wildcard or grant permissions to a placeholder account. Use Microsoft’s connector-account permissions procedure for the selected feature and scoped OUs. Reset Password alone is not a complete permissions checklist. Review protected accounts and inherited permissions separately, then test with an intended, non-privileged account.
Step 2 — Enable Password Writeback in Entra Connect
- On the Entra Connect server, run Microsoft Entra Connect from the Start menu
- Click Configure
- Select Customize synchronization options → Next
- Enter credentials when prompted
- Navigate through the wizard until Optional Features
- Check the box Password writeback
- Complete the wizard and commit the configuration
A full sync cycle runs to apply the change.
Step 3 — Enable Password Writeback in SSPR
- Sign in to the Microsoft Entra admin center
- Go to Identity → Protection → Password reset
- Under Properties, set Self-service password reset enabled to Selected or All
- Go to Authentication methods and configure what users can use:
- Number of methods required: 2
- Methods available: Mobile phone, Email, Security questions, etc.
- Go to Registration → set Require users to register when signing in to Yes
- Go to On-premises integration:
- Set Write back passwords to your on-premises directory to Yes
- Verify the selected on-premises integration settings. SSPR does not offer an arbitrary writeback destination OU; permissions and the synchronized user determine the target account.
- Click Save
Step 4 — Test Password Writeback
Via SSPR portal:
- Browse to
https://aka.ms/sspron a test user’s device - Enter the test user’s UPN (e.g.,
[email protected]) - Complete the CAPTCHA
- Verify identity via configured method (phone, email)
- Enter a new password and confirm
- Check on-prem AD immediately:
|
|
Via admin reset:
- In the Entra admin center, go to Identity → Users → All users
- Select a test user → Reset password
- Set a temporary password and click Reset
- Verify on-prem AD password was updated:
|
|
Step 5 — Monitor Password Writeback
|
|
In Synchronization Service Manager, look for export runs with PasswordChange or PasswordSet export types.
Device Writeback
Device writeback creates msDS-Device registration objects under a configured RegisteredDevices container. These are not ordinary AD computer accounts. It supports specific AD FS device-based access scenarios and Windows Hello for Business hybrid certificate trust; it is not generally required for Microsoft Entra hybrid join or cloud Kerberos trust.
Follow Microsoft’s device-writeback configuration and verification procedure. Review the selected forest, container, licensing, supported trust design, connector permissions, and installed Entra Connect version before enabling it. Keep directory permissions narrowly scoped and verify the generated registration objects after synchronization.
On an administrative machine with the AD module, the following is a read-only inventory for the current AD domain. If writeback targets another domain, select that domain explicitly first:
|
|
The container may not exist before configuration, and synchronization is not instantaneous. A registration object alone does not establish that an AD FS relying party or Windows Hello deployment works; verify the specific end-to-end trust scenario.
Step 4 — Troubleshooting Device Writeback
If devices do not appear:
- Is the device registered in Entra ID?
Entra admin center → Identity → Devices → All devices - Has a sync cycle completed since registration?
1Start-ADSyncSyncCycle -PolicyType Delta - Check for device writeback errors in:
Synchronization Service Manager → Operations → look for export errors
Group Writeback
Group writeback provisions cloud groups to on-premises AD. There are two scenarios with different recommendations:
| Scenario | Recommendation |
|---|---|
| Microsoft 365 groups (Teams, Outlook groups) | Group Writeback v1 via Entra Connect Sync (still supported) |
| Cloud-only security groups | Use Entra Cloud Sync (Group Writeback v2 is deprecated) |
Scenario 1: M365 Group Writeback (v1)
Microsoft 365 groups (formerly Office 365 Groups) are managed in the cloud but need to exist on-premises for Exchange hybrid scenarios or on-premises applications that read security groups from AD.
Step 1 — Enable in Entra Connect
- Run Microsoft Entra Connect → Configure
- Select Customize synchronization options
- Navigate through the wizard to Optional Features
- Check Group writeback (if it appears — v1 must be enabled in the sync rules editor if the checkbox is absent)
- Select the destination OU for written-back groups
- Complete the wizard
Step 2 — Enable in Entra Admin Center
- Sign in to the Entra admin center
- Go to Identity → Groups → All groups
- Click Group settings
- Set Write back Microsoft 365 groups to on-premises to Yes
- Save
Step 3 — Verify
|
|
Only groups with a Microsoft 365 group type (not Security, not
Distribution) are written back. Their groupType in AD is
SECURITY_GROUP | DISTRIBUTION_GROUP | UNIVERSAL_GROUP to preserve
mail flow.
Scenario 2: Cloud Security Groups (via Entra Cloud Sync)
Group Writeback v2 in Entra Connect Sync is deprecated. For provisioning cloud security groups to on-premises AD, Microsoft recommends Microsoft Entra Cloud Sync:
|
|
Cloud Sync provisions cloud security groups as universal security groups in AD. It can run alongside Entra Connect Sync — Entra Connect handles user sync, while Cloud Sync handles group writeback.
Homelab note: Group writeback (both v1 and Cloud Sync) requires real-world multicloud management to be useful. For a homelab without Exchange hybrid or Teams governance, skip group writeback unless you have a specific use case.
Writeback Licensing Summary
| Feature | License Required |
|---|---|
| Password writeback | Entra ID P1 or P2 |
| Device writeback | Entra ID P1 or P2 |
| Group writeback v1 (M365 groups) | Entra ID P1 or P2 + Exchange hybrid |
| Group writeback Cloud Sync (security groups) | Entra ID P1 or P2 |
Without at least P1 licenses, the writeback options do not appear in the Entra Connect wizard.
Post-Installation Verification
Verify each feature through its own workflow
Review the installed wizard’s feature configuration and connector operations. For password writeback, complete an authorized SSPR test with a scoped test account and verify the on-premises result. For device writeback, inspect the selected container’s msDS-Device objects. For groups, verify scope, memberships, and the intended group-provisioning mechanism.
Do not infer enabled features from a fabricated PowerShell output block or unverified property names. Record the installed tool version and observed results. This source audit did not modify a tenant or execute directory writeback.
Monitor with Synchronization Service Manager
Open C:\Program Files\Microsoft Azure AD Sync\UIShell\MiisClient.exe:
- Operations tab — filter by connector and look for Export runs
- Each export shows the number of:
- adds — new objects written back (first sync of a device/group)
- updates — existing objects updated (password change sync)
- deletes — objects removed
Check Synchronization Statistics
|
|
Troubleshooting Writeback
Password Writeback Fails
| Symptom | Likely Cause | Fix |
|---|---|---|
| “Password does not meet complexity requirements” | On-prem AD policy is more restrictive than cloud | Align policies or check AD password filter |
| “Writeback timeout” | Network latency to Azure Service Bus | Check outbound connectivity from Entra Connect server |
| “Access denied” | AD Connector account lacks reset password permission | Grant via ADSI Edit or dsacls |
|
|
Device Writeback Fails
| Symptom | Likely Cause | Fix |
|---|---|---|
| Device not in AD after sync | Container not configured | Run Entra Connect wizard → Configure device options |
| Export error “no-writeback-container” | Device writeback OU missing | Create manually with the provided PowerShell script |
| Device shows in Entra but not on-prem | Device registered before writeback was enabled | Trigger a delta sync |
|
|
Group Writeback Fails
| Symptom | Likely Cause | Fix |
|---|---|---|
| M365 group not in AD | Exchange hybrid not configured | Configure Exchange hybrid or check group writeback v1 is on |
| “Group writeback not enabled” | Sync rule not configured | Enable via Entra Connect Optional Features |
| Cloud Sync group not provisioned | Scope not configured | Check Cloud Sync group provisioning settings |
When to Skip Writeback
- No on-premises Exchange? Skip group writeback v1
- No supported AD FS/device certificate-trust requirement? Do not enable device writeback merely because hybrid join is planned.
- Small lab with same admin passwords? Password writeback is optional — but SSPR is a good demo feature
If unsure, enable password writeback (it adds real value) and skip the others until the next post in the series requires them.
What We Built
| Feature | Status |
|---|---|
| Password writeback (SSPR) | Enabled — cloud password resets sync to on-prem AD |
| Device writeback | Enabled — registered devices appear in AD |
| Group writeback v1 (M365 groups) | Optional — skip unless Exchange hybrid exists |
| Group writeback Cloud Sync | Optional — skip unless cloud security groups need to exist on-prem |
Next in the Series
With writeback configured, devices can be registered in both on-premises AD and Entra ID simultaneously. The next post covers:
Post 4: Entra ID Hybrid Join + Device Registration
Configure automatic device registration via GPO, verify hybrid join status, and enable SSO to cloud resources from domain-joined devices.