Skip to content

Latest commit

 

History

History
115 lines (81 loc) · 3.74 KB

File metadata and controls

115 lines (81 loc) · 3.74 KB
title phoneAuthenticationMethod: enableSmsSignIn
description Enable SMS sign-in for a mobile phone.
ms.localizationpriority medium
author luc-msft
ms.reviewer intelligentaccesspm
ms.subservice entra-sign-in
doc_type apiPageType
ms.date 07/31/2025

phoneAuthenticationMethod: enableSmsSignIn

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Enable SMS sign-in for an existing mobile phone number. To be successfully enabled:

  • The phone must have "phoneType": "mobile".
  • The phone must be unique in the SMS sign-in system (no one else can also be using that number).
  • The user must be enabled for SMS sign-in in the authentication methods policy.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

[!INCLUDE rbac-authentication-methods-apis-write-others]

HTTP request

Enable SMS sign-in for your own mobile phone authentication method.

[!INCLUDE me-apis-sign-in-note]

POST /me/authentication/phoneMethods/{id}/enableSmsSignIn

Enable SMS sign-in for your own or another user's mobile phone authentication method.

[!INCLUDE authentication-methods-apis-users-selfservice]

POST /users/{id | userPrincipalName}/authentication/phoneMethods/{id}/enableSmsSignIn

The value of id for the mobile phoneType is 3179e48a-750b-4051-897c-87b9720928f7.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code. It doesn't return anything in the response body.

Examples

The following example shows how to call this API.

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/me/authentication/phoneMethods/3179e48a-750b-4051-897c-87b9720928f7/enableSmsSignIn

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

HTTP/1.1 200 OK