You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory/authentication/tutorial-enable-cloud-sync-sspr-writeback.md
+56-56Lines changed: 56 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,79 +5,82 @@ services: active-directory
5
5
ms.service: active-directory
6
6
ms.subservice: authentication
7
7
ms.topic: tutorial
8
-
ms.date: 08/22/2022
8
+
ms.date: 09/08/2022
9
9
ms.author: justinha
10
10
author: justinha
11
11
ms.reviewer: tilarso
12
12
ms.collection: M365-identity-device-management
13
13
ms.custom: contperf-fy20q4, ignite-fall-2021
14
14
# Customer intent: As an Azure AD Administrator, I want to learn how to enable and use password writeback so that when end-users reset their password through a web browser their updated password is synchronized back to my on-premises AD environment.
15
15
---
16
-
# Tutorial: Enable cloud sync self-service password reset writeback to an on-premises environment (preview)
16
+
# Tutorial: Enable cloud sync self-service password reset writeback to an on-premises environment
17
17
18
-
Azure Active Directory Connect cloud sync can synchronize Azure AD password changes in real time between users in disconnected on-premises Active Directory Domain Services (AD DS) domains. The public preview of Azure AD Connect cloud sync can run side-by-side with [Azure Active Directory Connect](tutorial-enable-sspr-writeback.md) at the domain level to simplify password writeback for additional scenarios, such as users who are in disconnected domains because of a company split or merge. You can configure each service in different domains to target different sets of users depending on their needs. Azure Active Directory Connect cloud sync uses the lightweight Azure AD cloud provisioning agent to simplify the setup for self-service password reset (SSPR) writeback and provide a secure way to send password changes in the cloud back to an on-premises directory.
18
+
Azure Active Directory Connect cloud sync can synchronize Azure AD password changes in real time between users in disconnected on-premises Active Directory Domain Services (AD DS) domains. Azure AD Connect cloud sync can run side-by-side with [Azure Active Directory Connect](tutorial-enable-sspr-writeback.md) at the domain level to simplify password writeback for additional scenarios, such as users who are in disconnected domains because of a company split or merge. You can configure each service in different domains to target different sets of users depending on their needs. Azure Active Directory Connect cloud sync uses the lightweight Azure AD cloud provisioning agent to simplify the setup for self-service password reset (SSPR) writeback and provide a secure way to send password changes in the cloud back to an on-premises directory.
19
19
20
-
Azure Active Directory Connect cloud sync self-service password reset writeback is supported as part of a public preview. For more information about previews, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
21
20
22
21
## Prerequisites
23
22
24
23
- An Azure AD tenant with at least an Azure AD Premium P1 or trial license enabled. If needed, [create one for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
25
-
- An account with either:
26
-
-[Authentication Policy Administrator](../roles/permissions-reference.md#authentication-policy-administrator) and [Hybrid Identity Administrator](../roles/permissions-reference.md#hybrid-identity-administrator) roles
24
+
- An account with:
27
25
-[Global Administrator](../roles/permissions-reference.md#global-administrator) role
28
26
- Azure AD configured for self-service password reset. If needed, complete this tutorial to enable Azure AD SSPR.
29
-
- An on-premises AD DS environment configured with Azure AD Connect cloud sync version 1.1.587 or later. Learn how to [identify the agent's current version](../cloud-sync/how-to-automatic-upgrade.md). If needed, configure Azure AD Connect cloud sync using [this tutorial](tutorial-enable-sspr.md).
30
-
- Enabling password writeback in Azure AD Connect cloud sync requires executing signed PowerShell scripts.
31
-
- Ensure that the PowerShell execution policy will allow running of scripts.
32
-
- The recommended execution policy during installation is "RemoteSigned".
33
-
- For more information about setting the PowerShell execution policy, see [Set-ExecutionPolicy](/powershell/module/microsoft.powershell.security/set-executionpolicy).
27
+
- An on-premises AD DS environment configured with [Azure AD Connect cloud sync version 1.1.972.0 or later](../app-provisioning/provisioning-agent-release-version-history.md). Learn how to [identify the agent's current version](../cloud-sync/how-to-automatic-upgrade.md). If needed, configure Azure AD Connect cloud sync using [this tutorial](tutorial-enable-sspr.md).
34
28
35
29
36
30
## Deployment steps
37
31
38
32
1.[Configure Azure AD Connect cloud sync service account permissions](#configure-azure-ad-connect-cloud-sync-service-account-permissions)
39
-
1.[Enable password writeback in Azure AD Connect cloud sync](#enable-password-writeback-in-azure-ad-connect-cloud-sync)
40
-
1.[Enable password writeback for SSPR](#enable-password-writeback-for-sspr)
33
+
1.[Enable password writeback in Azure AD Connect cloud sync](#enable-password-writeback-in-sspr)
34
+
1.[Enable password writeback for SSPR](#enable-password-writeback-in-sspr)
41
35
42
36
### Configure Azure AD Connect cloud sync service account permissions
43
37
44
38
Permissions for cloud sync are configured by default. If permissions need to be reset, see [Troubleshooting](#troubleshooting) for more details about the specific permissions required for password writeback and how to set them by using PowerShell.
45
39
46
-
### Enable password writeback in Azure AD Connect cloud sync
40
+
### Enable password writeback in SSPR
41
+
You can enable Azure AD connect cloud sync provisioning directly in Azure portal or through PowerShell.
47
42
48
-
For public preview, you need to enable password writeback in Azure AD Connect cloud sync by running `Set-AADCloudSyncPasswordWritebackConfiguration` on any server with the provisioning agent. You will need global administrator credentials:
49
-
50
-
```powershell
51
-
Import-Module 'C:\\Program Files\\Microsoft Azure AD Connect Provisioning Agent\\Microsoft.CloudSync.Powershell.dll'
With password writeback enabled in Azure AD Connect cloud sync, now verify, and configure Azure AD self-service password reset (SSPR) for password writeback. When you enable SSPR to use password writeback, users who change or reset their password have that updated password synchronized back to the on-premises AD DS environment as well.
58
46
59
47
To verify and enable password writeback in SSPR, complete the following steps:
48
+
1. Sign in to the [Azure portal](https://portal.azure.com) using a Global Administrator account.
49
+
1. Search for and select **Azure Active Directory**, select **Password reset**, then choose **On-premises integration**.
50
+
1. Check the option for **Write back passwords to your on-premises directory** .
51
+
1. (optional) If Azure AD Connect provisioning agents are detected, you can additionally check the option for **Write back passwords with Azure AD Connect cloud sync**.
52
+
3. Check the option for **Allow users to unlock accounts without resetting their password** to *Yes*.
60
53
61
-
1. Sign into the Azure portal using a [Hybrid Identity Administrator](../roles/permissions-reference.md#hybrid-identity-administrator) account.
62
-
1. Navigate to Azure Active Directory, select **Password reset**, then choose **On-premises integration**.
63
-
1. Verify the Azure AD Connect cloud sync agent set up is complete.
64
-
1. Set **Write back passwords to your on-premises directory?** to **Yes**.
65
-
1. Set **Allow users to unlock accounts without resetting their password?** to **Yes**.
66
-
67
-

54
+

68
55
69
-
1. When ready, select **Save**.
56
+
1. When ready, select **Save**.
57
+
58
+
#### PowerShell
59
+
With PowerShell you can enable Azure AD Connect cloud sync by using the Set-AADCloudSyncPasswordWritebackConfiguration cmdlet on the servers with the provisioning agents. You will need global administrator credentials:
60
+
61
+
```powershell
62
+
Import-Module 'C:\\Program Files\\Microsoft Azure AD Connect Provisioning Agent\\Microsoft.CloudSync.Powershell.dll'
If you no longer want to use the SSPR writeback functionality you have configured as part of this tutorial, complete the following steps:
68
+
69
+
1. Sign in to the [Azure portal](https://portal.azure.com).
70
+
1. Search for and select **Azure Active Directory**, select **Password reset**, then choose **On-premises integration**.
71
+
1. Uncheck the option for **Write back passwords to your on-premises directory**.
72
+
1. Uncheck the option for **Write back passwords with Azure AD Connect cloud sync**.
73
+
1. Uncheck the option for **Allow users to unlock accounts without resetting their password**.
74
+
1. When ready, select **Save**.
72
75
73
-
If you no longer want to use the SSPR password writeback functionality you have configured as part of this document, complete the following steps:
76
+
If you no longer want to use the Azure AD Connect cloud sync for SSPR writeback functionality but want to continue using Azure AD Connect sync agent for writebacks complete the following steps:
74
77
75
-
1. Sign into the Azure portal using a [Hybrid Identity Administrator](../roles/permissions-reference.md#hybrid-identity-administrator) account.
76
-
1. Search for and select Azure Active Directory, select **Password reset**, then choose **On-premises integration**.
77
-
1.Set **Write back passwords to your on-premises directory?** to **No**.
78
-
1.Set **Allow users to unlock accounts without resetting their password?** to **No**.
78
+
1. Sign in to the [Azure portal](https://portal.azure.com).
79
+
1. Search for and select **Azure Active Directory**, select **Password reset**, then choose **On-premises integration**.
80
+
1.Uncheck the option for **Write back passwords with Azure AD Connect cloud sync**.
81
+
1.When ready, select **Save**.
79
82
80
-
From your Azure AD Connect cloud sync server, run `Set-AADCloudSyncPasswordWritebackConfiguration` using Hybrid Identity Administrator credentials to disable password writeback with Azure AD Connect cloud sync.
83
+
You can also use PowerShell to disable Azure AD Connect cloud sync for SSPR writeback functionality, from your Azure AD Connect cloud sync server, run `Set-AADCloudSyncPasswordWritebackConfiguration` using Hybrid Identity Administrator credentials to disable password writeback with Azure AD Connect cloud sync.
81
84
82
85
```powershell
83
86
Import-Module ‘C:\\Program Files\\Microsoft Azure AD Connect Provisioning Agent\\Microsoft.CloudSync.Powershell.dll’
@@ -118,31 +121,28 @@ Try the following operations to validate scenarios using password writeback. All
118
121
119
122
## Troubleshooting
120
123
121
-
The Azure AD Connect cloud sync group Managed Service Account should have the following permissions set to writeback the passwords by default:
122
-
123
-
- Reset password
124
-
- Write permissions on lockoutTime
125
-
- Write permissions on pwdLastSet
126
-
- Extended rights for "Unexpire Password" on the root object of each domain in that forest, if not already set.
127
-
128
-
If these permissions are not set, you can set the PasswordWriteBack permission on the service account by using the Set-AADCloudSyncPermissions cmdlet and on-premises enterprise administrator credentials:
129
-
130
-
```powershell
131
-
Import-Module ‘C:\\Program Files\\Microsoft Azure AD Connect Provisioning Agent\\Microsoft.CloudSync.Powershell.dll’
After you have updated the permissions, it may take up to an hour or more for these permissions to replicate to all the objects in your directory.
124
+
- The Azure AD Connect cloud sync group Managed Service Account should have the following permissions set to writeback the passwords by default:
125
+
- Reset password
126
+
- Write permissions on lockoutTime
127
+
- Write permissions on pwdLastSet
128
+
- Extended rights for "Unexpire Password" on the root object of each domain in that forest, if not already set.
129
+
130
+
If these permissions are not set, you can set the PasswordWriteBack permission on the service account by using the Set-AADCloudSyncPermissions cmdlet and on-premises enterprise administrator credentials:
136
131
137
-
If you don't assign these permissions, writeback may appear to be configured correctly, but users may encounter errors when they update their on-premises passwords from the cloud. Permissions must be applied to “This object and all descendant objects” for "Unexpire Password" to appear.
132
+
```powershell
133
+
Import-Module ‘C:\\Program Files\\Microsoft Azure AD Connect Provisioning Agent\\Microsoft.CloudSync.Powershell.dll’
If passwords for some user accounts aren't written back to the on-premises directory, make sure that inheritance isn't disabled for the account in the on-prem AD DS environment. Write permissions for passwords must be applied to descendant objects for the feature to work correctly.
137
+
After you have updated the permissions, it may take up to an hour or more for these permissions to replicate to all the objects in your directory.
138
+
139
+
- If passwords for some user accounts aren't written back to the on-premises directory, make sure that inheritance isn't disabled for the account in the on-premises AD DS environment. Write permissions for passwords must be applied to descendant objects for the feature to work correctly.
140
140
141
-
Password policies in the on-premises AD DS environment may prevent password resets from being correctly processed. If you are testing this feature and want to reset password for users more than once per day, the group policy for Minimum password age must be set to 0. This setting can be found under Computer Configuration > Policies > Windows Settings > Security Settings > Account Policies within gpmc.msc.
141
+
-Password policies in the on-premises AD DS environment may prevent password resets from being correctly processed. If you are testing this feature and want to reset password for users more than once per day, the group policy for Minimum password age must be set to 0. This setting can be found under Computer Configuration > Policies > Windows Settings > Security Settings > Account Policies within gpmc.msc.
142
142
143
-
If you update the group policy, wait for the updated policy to replicate, or use the gpupdate /force command.
143
+
-If you update the group policy, wait for the updated policy to replicate, or use the gpupdate /force command.
144
144
145
-
For passwords to be changed immediately, Minimum password age must be set to 0. However, if users adhere to the on-premises policies, and the Minimum password age is set to a value greater than zero, password writeback will not work after the on-premises policies are evaluated.
145
+
-For passwords to be changed immediately, Minimum password age must be set to 0. However, if users adhere to the on-premises policies, and the Minimum password age is set to a value greater than zero, password writeback will not work after the on-premises policies are evaluated.
146
146
147
147
For more information about how to validate or set up the appropriate permissions, see [Configure account permissions for Azure AD Connect](tutorial-enable-sspr-writeback.md#configure-account-permissions-for-azure-ad-connect).
Copy file name to clipboardExpand all lines: articles/active-directory/authentication/tutorial-enable-sspr-writeback.md
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ services: active-directory
6
6
ms.service: active-directory
7
7
ms.subservice: authentication
8
8
ms.topic: tutorial
9
-
ms.date: 05/31/2022
9
+
ms.date: 09/08/2022
10
10
11
11
ms.author: justinha
12
12
author: justinha
@@ -115,16 +115,17 @@ To enable SSPR writeback, first enable the writeback option in Azure AD Connect.
115
115
116
116
## Enable password writeback for SSPR
117
117
118
-
With password writeback enabled in Azure AD Connect, now configure Azure AD SSPR for writeback. When you enable SSPR to use password writeback, users who change or reset their password have that updated password synchronized back to the on-premises AD DS environment as well.
118
+
With password writeback enabled in Azure AD Connect, now configure Azure AD SSPR for writeback. SSPR can be configured to writeback through Azure AD Connect sync agents and Azure AD Connect provisioning agents (cloud sync). When you enable SSPR to use password writeback, users who change or reset their password have that updated password synchronized back to the on-premises AD DS environment as well.
119
119
120
120
To enable password writeback in SSPR, complete the following steps:
121
121
122
122
1. Sign in to the [Azure portal](https://portal.azure.com) using a Hybrid Identity Administrator account.
123
123
1. Search for and select **Azure Active Directory**, select **Password reset**, then choose **On-premises integration**.
124
-
1. Set the option for **Write back passwords to your on-premises directory?** to *Yes*.
125
-
1. Set the option for **Allow users to unlock accounts without resetting their password?** to *Yes*.
124
+
1. Check the option for **Write back passwords to your on-premises directory** .
125
+
1. (optional) If Azure AD Connect provisioning agents are detected, you can additionally check the option for **Write back passwords with Azure AD Connect cloud sync**.
126
+
3. Check the option for **Allow users to unlock accounts without resetting their password** to *Yes*.
126
127
127
-

128
+

128
129
129
130
1. When ready, select **Save**.
130
131
@@ -134,8 +135,16 @@ If you no longer want to use the SSPR writeback functionality you have configure
134
135
135
136
1. Sign in to the [Azure portal](https://portal.azure.com).
136
137
1. Search for and select **Azure Active Directory**, select **Password reset**, then choose **On-premises integration**.
137
-
1. Set the option for **Write back passwords to your on-premises directory?** to *No*.
138
-
1. Set the option for **Allow users to unlock accounts without resetting their password?** to *No*.
138
+
1. Uncheck the option for **Write back passwords to your on-premises directory**.
139
+
1. Uncheck the option for **Write back passwords with Azure AD Connect cloud sync**.
140
+
1. Uncheck the option for **Allow users to unlock accounts without resetting their password**.
141
+
1. When ready, select **Save**.
142
+
143
+
If you no longer want to use the Azure AD Connect cloud sync for SSPR writeback functionality but want to continue using Azure AD Connect sync agent for writebacks complete the following steps:
144
+
1. Sign in to the [Azure portal](https://portal.azure.com).
145
+
1. Search for and select **Azure Active Directory**, select **Password reset**, then choose **On-premises integration**.
146
+
1. Uncheck the option for **Write back passwords with Azure AD Connect cloud sync**.
147
+
1. When ready, select **Save**.
139
148
140
149
If you no longer want to use any password functionality, complete the following steps from your Azure AD Connect server:
0 commit comments