|
1 | 1 | ---
|
2 |
| -title: Phone sign-up and sign-in with custom policies |
| 2 | +title: Phone sign-up and sign-in with custom policies (Preview) |
3 | 3 | titleSuffix: Azure AD B2C
|
4 |
| -description: Learn how to send one-time passwords in text messages to your application users' phones with custom policies in Azure Active Directory B2C. |
| 4 | +description: Send one-time passwords (OTP) in text messages to your application users' phones with custom policies in Azure Active Directory B2C. |
5 | 5 | services: active-directory-b2c
|
6 | 6 | author: mmacy
|
7 | 7 | manager: celestedg
|
8 | 8 |
|
9 | 9 | ms.service: active-directory
|
10 | 10 | ms.workload: identity
|
11 | 11 | ms.topic: conceptual
|
12 |
| -ms.date: 12/17/2019 |
| 12 | +ms.date: 02/25/2020 |
13 | 13 | ms.author: marsma
|
14 | 14 | ms.subservice: B2C
|
15 | 15 | ---
|
16 | 16 |
|
17 |
| -# Set up phone sign-up and sign-in with custom policies in Azure AD B2C |
| 17 | +# Set up phone sign-up and sign-in with custom policies in Azure AD B2C (Preview) |
18 | 18 |
|
19 | 19 | Phone sign-up and sign-in in Azure Active Directory B2C (Azure AD B2C) enables your users to sign up and sign in to your applications by using a one-time password (OTP) sent in a text message to their phone. One-time passwords can help minimize the risk of your users forgetting or having their passwords compromised.
|
20 | 20 |
|
21 | 21 | Follow the steps in this article to use the custom policies to enable your customers to sign up and sign in to your applications by using a one-time password sent to their phone.
|
22 | 22 |
|
23 | 23 | [!INCLUDE [b2c-public-preview-feature](../../includes/active-directory-b2c-public-preview.md)]
|
24 | 24 |
|
| 25 | +## Pricing |
| 26 | + |
| 27 | +One-time passwords are sent to your users by using SMS text messages, and you may be charged for each message sent. For pricing information, see the **Separate Charges** section of [Azure Active Directory B2C pricing](https://azure.microsoft.com/pricing/details/active-directory-b2c/). |
| 28 | + |
25 | 29 | ## Prerequisites
|
26 | 30 |
|
| 31 | +You need the following resources in place before setting up OTP. |
| 32 | + |
27 | 33 | * [Azure AD B2C tenant](tutorial-create-tenant.md)
|
28 | 34 | * [Web application registered](tutorial-register-applications.md) in your tenant
|
29 | 35 | * [Custom policies](custom-policy-get-started.md) uploaded to your tenant
|
@@ -66,6 +72,22 @@ As you upload each file, Azure adds the prefix `B2C_1A_`.
|
66 | 72 | 1. Select **Run now** and sign up using an email address or a phone number.
|
67 | 73 | 1. Select **Run now** once again and sign in with the same account to confirm that you have the correct configuration.
|
68 | 74 |
|
| 75 | +## Get user account by phone number |
| 76 | + |
| 77 | +A user that signs up with a phone number but does not provide a recovery email address is recorded in your Azure AD B2C directory with their phone number as their sign-in name. If the user then wishes to change their phone number, your help desk or support team must first find their account, and then update their phone number. |
| 78 | + |
| 79 | +You can find a user by their phone number (sign-in name) by using [Microsoft Graph](manage-user-accounts-graph-api.md): |
| 80 | + |
| 81 | +```http |
| 82 | +GET https://graph.microsoft.com/v1.0/users?$filter=identities/any(c:c/issuerAssignedId eq '+{phone number}' and c/issuer eq '{tenant name}.onmicrosoft.com') |
| 83 | +``` |
| 84 | + |
| 85 | +For example: |
| 86 | + |
| 87 | +```http |
| 88 | +GET https://graph.microsoft.com/v1.0/users?$filter=identities/any(c:c/issuerAssignedId eq '+450334567890' and c/issuer eq 'contosob2c.onmicrosoft.com') |
| 89 | +``` |
| 90 | + |
69 | 91 | ## Next steps
|
70 | 92 |
|
71 | 93 | You can find the phone sign-up and sign-in custom policy starter pack (and other starter packs) on GitHub:
|
|
0 commit comments