Skip to content

Latest commit

 

History

History
127 lines (93 loc) · 4.66 KB

File metadata and controls

127 lines (93 loc) · 4.66 KB
title Delete hardwareOathAuthenticationMethod
description Unassign a hardware token from a user. The token remains in the directory.
author luc-msft
ms.localizationpriority medium
ms.subservice entra-sign-in
doc_type apiPageType
ms.date 12/06/2024

Delete hardwareOathAuthenticationMethod

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Unassign a hardware token from a user. The token remains in the directory and its details can be retrieved by List hardwareOathDevices API.

[!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 other users

[!INCLUDE permissions-table]

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

HTTP request

Unassign yourself a hardware OATH authentication method.

DELETE /me/authentication/hardwareOathMethods/{hardwareOathAuthenticationMethodId}

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

Unassign another user their hardware OATH authentication method.

DELETE /users/{usersId}/authentication/hardwareOathMethods/{hardwareOathAuthenticationMethodId}

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

Examples

Request

The following example shows a request.

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

[!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