Skip to content

Latest commit

 

History

History
126 lines (93 loc) · 4.63 KB

File metadata and controls

126 lines (93 loc) · 4.63 KB
title hardwareOathAuthenticationMethod: deactivate
description Deactive a hardware OATH token. It remains assigned to a user.
author luc-msft
ms.localizationpriority medium
ms.subservice entra-sign-in
doc_type apiPageType
ms.date 12/06/2024

hardwareOathAuthenticationMethod: deactivate

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Deactive a hardware OATH token. It remains assigned to a user.

[!INCLUDE national-cloud-support]

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.

Permissions acting on self

[!INCLUDE permissions-table]

Permissions acting on another user

[!INCLUDE permissions-table]

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

HTTP request

Deactivate a hardware OATH authentication method assigned to you.

POST /me/authentication/hardwareOathMethods/{hardwareOathAuthenticationMethodId}/deactivate

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

Deactivate a hardware OATH authentication method assigned to another user.

POST /users/{usersId}/authentication/hardwareOathMethods/{hardwareOathAuthenticationMethodId}/deactivate

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 action returns a 204 No Content response code.

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/me/authentication/hardwareOathMethods/{hardwareOathAuthenticationMethodId}/deactivate

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

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

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

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

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

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

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


Response

The following example shows the response.

HTTP/1.1 204 No Content