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/howto-authentication-use-email-signin.md
+80-44Lines changed: 80 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Some organizations haven't moved to hybrid authentication for the following reas
29
29
30
30
To help with the move to hybrid authentication, you can configure Azure AD to let users sign in with their email as an alternate login ID. For example, if *Contoso* rebranded to *Fabrikam*, rather than continuing to sign in with the legacy `[email protected]` UPN, email as an alternate login ID can be used. To access an application or service, users would sign in to Azure AD using their non-UPN email, such as `[email protected]`.
31
31
32
-

32
+

33
33
34
34
This article shows you how to enable and use email as an alternate login ID.
35
35
@@ -38,7 +38,7 @@ This article shows you how to enable and use email as an alternate login ID.
38
38
Here's what you need to know about email as an alternate login ID:
39
39
40
40
* The feature is available in Azure AD Free edition and higher.
41
-
* The feature enables sign-in with *ProxyAddresses*, in addition to UPN, for cloud-authenticated Azure AD users. More on how this applies to Azure AD B2B scenarios in the [B2B](#b2b-guest-user-sign-in-with-an-email-address) section.
41
+
* The feature enables sign-in with *ProxyAddresses*, in addition to UPN, for cloud-authenticated Azure AD users. More on how this applies to Azure AD business-to-business (B2B) collaboration in the [B2B](#b2b-guest-user-sign-in-with-an-email-address) section.
42
42
* When a user signs in with a non-UPN email, the `unique_name` and `preferred_username` claims (if present) in the [ID token](../develop/id-tokens.md) will return the non-UPN email.
43
43
* The feature supports managed authentication with Password Hash Sync (PHS) or Pass-Through Authentication (PTA).
44
44
* There are two options for configuring the feature:
@@ -62,15 +62,14 @@ In the current preview state, the following limitations apply to email as an alt
62
62
*[Hybrid Azure AD joined devices](../devices/concept-azure-ad-join-hybrid.md)
63
63
*[Azure AD joined devices](../devices/concept-azure-ad-join.md)
64
64
*[Azure AD registered devices](../devices/concept-azure-ad-register.md)
65
-
*[Applications using Resource Owner Password Credentials (ROPC)](../develop/v2-oauth-ropc.md)
66
-
*Applications using legacy authentication such as POP3 and SMTP
***Unsupported apps** - Some third-party applications may not work as expected if they assume that the `unique_name` or `preferred_username` claims are immutable or will always match a specific user attribute, such as UPN.
72
71
73
-
***Logging** - Changes made to the feature's configuration in HRD policy are not explicitly shown in the audit logs. In addition, the *Sign-in identifier type* field in the sign-in logs may not be always accurate and should not be used to determine whether the feature has been used for sign-in.
72
+
***Logging** - Changes made to the feature's configuration in HRD policy are not explicitly shown in the audit logs.
74
73
75
74
***Staged rollout policy** - The following limitations apply only when the feature is enabled using staged rollout policy:
76
75
* The feature does not work as expected for users that are included in other staged rollout policies.
@@ -116,15 +115,15 @@ In both configuration options, the user submits their username and password to A
116
115
One of the user attributes that's automatically synchronized by Azure AD Connect is *ProxyAddresses*. If users have an email address defined in the on-prem AD DS environment as part of the *ProxyAddresses* attribute, it's automatically synchronized to Azure AD. This email address can then be used directly in the Azure AD sign-in process as an alternate login ID.
117
116
118
117
> [!IMPORTANT]
119
-
> Only emails in verified domains for the tenant are synchronized to Azure AD. Each Azure AD tenant has one or more verified domains, for which you have proven ownership, and are uniquely bound to you tenant.
118
+
> Only emails in verified domains for the tenant are synchronized to Azure AD. Each Azure AD tenant has one or more verified domains, for which you have proven ownership, and are uniquely bound to your tenant.
120
119
>
121
120
> For more information, see [Add and verify a custom domain name in Azure AD][verify-domain].
122
121
123
122
## B2B guest user sign-in with an email address
124
123
125
-

124
+

126
125
127
-
Email as an alternate login ID applies to [Azure AD business-to-business (B2B) collaboration](../external-identities/what-is-b2b.md) under a "bring your own sign-in identifiers" model. When email as an alternate login ID is enabled in the home tenant, Azure AD users can perform guest sign in with non-UPN email on the resource tenanted endpoint. No action is required from the resource tenant to enable this functionality.
126
+
Email as an alternate login ID applies to [Azure AD B2B collaboration](../external-identities/what-is-b2b.md) under a "bring your own sign-in identifiers" model. When email as an alternate login ID is enabled in the home tenant, Azure AD users can perform guest sign in with non-UPN email on the resource tenanted endpoint. No action is required from the resource tenant to enable this functionality.
128
127
129
128
## Enable user sign-in with an email address
130
129
@@ -133,33 +132,57 @@ Email as an alternate login ID applies to [Azure AD business-to-business (B2B) c
133
132
134
133
Once users with the *ProxyAddresses* attribute applied are synchronized to Azure AD using Azure AD Connect, you need to enable the feature for users to sign in with email as an alternate login ID for your tenant. This feature tells the Azure AD login servers to not only check the sign-in identifier against UPN values, but also against *ProxyAddresses* values for the email address.
135
134
136
-
During preview, you can currently only enable the sign-in with email as an alternate login ID feature using PowerShell. You need *global administrator* permissions to complete the following steps:
135
+
During preview, you currently need *global administrator* permissions to enable sign-in with email as an alternate login ID. You can use either Azure portal or PowerShell to set up the feature.
137
136
138
-
1. Open a PowerShell session as an administrator, then install the *AzureADPreview* module using the [Install-Module][Install-Module] cmdlet:
137
+
### Azure portal
138
+
139
+
1. Sign in to the [Azure portal][azure-portal] as a *global administrator*.
140
+
1. Search for and select **Azure Active Directory**.
141
+
1. From the navigation menu on the left-hand side of the Azure Active Directory window, select **Azure AD Connect > Email as alternate login ID**.
142
+
143
+

144
+
145
+
1. Click the checkbox next to *Email as an alternate login ID*.
146
+
1. Click **Save**.
147
+
148
+

149
+
150
+
With the policy applied, it can take up to 1 hour to propagate and for users to be able to sign in using their alternate login ID.
151
+
152
+
### PowerShell
153
+
154
+
> [!NOTE]
155
+
> This configuration option uses HRD policy. For more information, see [homeRealmDiscoveryPolicy resource type](/graph/api/resources/homeRealmDiscoveryPolicy?view=graph-rest-1.0).
156
+
157
+
Once users with the *ProxyAddresses* attribute applied are synchronized to Azure AD using Azure AD Connect, you need to enable the feature for users to sign-in with email as an alternate login ID for your tenant. This feature tells the Azure AD login servers to not only check the sign-in identifier against UPN values, but also against *ProxyAddresses* values for the email address.
158
+
159
+
During preview, you can currently only enable email as an alternate login ID using PowerShell or the Microsoft Graph API. You need *global administrator* privileges to complete the following steps:
160
+
161
+
1. Open a PowerShell session as an administrator, then install the *Microsoft.Graph* module using the `Install-Module` cmdlet:
139
162
140
163
```powershell
141
-
Install-Module AzureADPreview
164
+
Install-Module Microsoft.Graph
142
165
```
143
166
144
-
If prompted, select **Y** to install NuGet or to install from an untrusted repository.
167
+
For more information on installation, see [Install the Microsoft Graph PowerShell SDK](/graph/powershell/installation).
145
168
146
-
1. Signin to your Azure AD tenant as a *global administrator* using the [Connect-AzureAD][Connect-AzureAD] cmdlet:
169
+
1. Sign-in to your Azure AD tenantusing the `Connect-MgGraph` cmdlet:
The command returns information about your account, environment, and tenant ID.
175
+
The command will ask you to authenticate using a web browser.
153
176
154
-
1. Check if the *HomeRealmDiscoveryPolicy* already exists in your tenant using the [Get-AzureADPolicy][Get-AzureADPolicy] cmdlet as follows:
177
+
1. Check if a *HomeRealmDiscoveryPolicy* already exists in your tenant using the `Get-MgPolicyHomeRealmDiscoveryPolicy` cmdlet as follows:
155
178
156
179
```powershell
157
-
Get-AzureADPolicy | Where-Object Type -eq "HomeRealmDiscoveryPolicy" | Format-List *
180
+
Get-MgPolicyHomeRealmDiscoveryPolicy
158
181
```
159
182
160
183
1. If there's no policy currently configured, the command returns nothing. If a policy is returned, skip this step and move on to the next step to update an existing policy.
161
184
162
-
To add the *HomeRealmDiscoveryPolicy* policy to the tenant, use the [New-AzureADPolicy][New-AzureADPolicy] cmdlet and set the *AlternateIdLogin* attribute to *"Enabled": true* as shown in the following example:
185
+
To add the *HomeRealmDiscoveryPolicy* to the tenant, use the `New-MgPolicyHomeRealmDiscoveryPolicy` cmdlet and set the *AlternateIdLogin* attribute to *"Enabled": true* as shown in the following example:
163
186
164
187
```powershell
165
188
$AzureADPolicyDefinition = @(
@@ -171,42 +194,38 @@ During preview, you can currently only enable the sign-in with email as an alter
If the policy exists but the *AlternateIdLogin* attribute that isn't present or enabled, or if other attributes exist on the policy you wish to preserve, update the existing policy using the [Set-AzureADPolicy][Set-AzureADPolicy] cmdlet.
223
+
If the policy exists but the *AlternateIdLogin* attribute that isn't present or enabled, or if other attributes exist on the policy you wish to preserve, update the existing policy using the `Update-MgPolicyHomeRealmDiscoveryPolicy` cmdlet.
205
224
206
225
> [!IMPORTANT]
207
226
> When you update the policy, make sure you include any old settings and the new *AlternateIdLogin* attribute.
208
227
209
-
The following example adds the *AlternateIdLogin* attribute and preserves the *AllowCloudPasswordValidation* attribute that may have already been set:
228
+
The following example adds the *AlternateIdLogin* attribute and preserves the *AllowCloudPasswordValidation* attribute that was previously set:
210
229
211
230
```powershell
212
231
$AzureADPolicyDefinition = @(
@@ -219,24 +238,33 @@ During preview, you can currently only enable the sign-in with email as an alter
## Enable staged rollout to test user sign-in with an email address
242
270
@@ -333,6 +361,12 @@ If users have trouble signing in with their email address, review the following
333
361
```
334
362
1. Make sure the user account has their email address set in the *ProxyAddresses* attribute in Azure AD.
335
363
364
+
### Sign-in logs
365
+
366
+
:::image type="content" border="true" source="./media/howto-authentication-use-email-signin/email-alternate-login-id-logs.png" alt-text="Screenshot of Azure A D sign-in logs showing email as alternate login I D activity.":::
367
+
368
+
You can review the [sign-in logs in Azure AD][sign-in-logs] for more information. Sign-ins with email as an alternate login ID will emit `proxyAddress` in the *Sign-in identifier type* field and the inputted username in the *Sign-in identifier* field.
369
+
336
370
### Conflicting values between cloud-only and synced users
337
371
338
372
Within a tenant, a cloud-only user's UPN may take on the same value as another user's proxy address synced from the on-premises directory. In this scenario, with the feature enabled, the cloud-only user will not be able to sign in with their UPN. Here are the steps for detecting instances of this issue.
@@ -414,8 +448,10 @@ For more information on hybrid identity operations, see [how password hash sync]
0 commit comments