Skip to content

Latest commit

 

History

History
112 lines (81 loc) · 4.09 KB

File metadata and controls

112 lines (81 loc) · 4.09 KB
title tenantReference: removePersonalData
description Create a request to remove the personal data for an outboundSharedUserProfile.
author yyuank
ms.reviewer mapamu, iamut
ms.localizationpriority medium
ms.subservice entra-sign-in
doc_type apiPageType
ms.date 05/16/2024

tenantReference: removePersonalData

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Create a request to remove the personal data for an outboundSharedUserProfile.

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

A user can create a request to remove their own personal data when the app is granted the CrossTenantUserProfileSharing.ReadWrite delegated permission on their behalf.

[!INCLUDE rbac-cross-tenant-access-shared-user-profiles-apis-write]

HTTP request

POST /directory/outboundSharedUserProfiles/{userId}/tenants/{tenantId}/removePersonalData

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/directory/outboundSharedUserProfiles/c228b2ae-c4fb-4eda-9620-7e73dddd1cac/tenants/62bfb458-9474-4c44-896b-b30942d055f0/removePersonalData

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