Skip to content

Latest commit

 

History

History
118 lines (86 loc) · 4.49 KB

File metadata and controls

118 lines (86 loc) · 4.49 KB
title Delete temporaryAccessPassAuthenticationMethod
description Delete a user's temporaryAccessPassAuthenticationMethod object.
author tilarso
ms.localizationpriority medium
ms.subservice entra-sign-in
doc_type apiPageType
ms.date 07/31/2025

Delete temporaryAccessPassAuthenticationMethod

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Delete a users's temporaryAccessPassAuthenticationMethod object.

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

[!INCLUDE permissions-table]

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

HTTP request

Delete your own temporary access pass authentication method.

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

DELETE /me/authentication/temporaryAccessPassMethods/{id}

Delete your own or another user's temporary access pass authentication method.

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

DELETE /users/{id | userPrincipalName}/authentication/temporaryAccessPassMethods/{id}

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. It doesn't return anything in the response body.

Examples

Request

DELETE https://graph.microsoft.com/beta/users/071cc716-8147-4397-a5ba-b2105951cc0b/authentication/temporaryAccessPassMethods/05267842-25b2-4b21-8abd-8e4982796f7f

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

HTTP/1.1 204 No Content