inboundSharedUserProfiles: removePersonalData

Namespace: microsoft.graph


APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

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

This API is supported in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) CrossTenantUserProfileSharing.ReadWrite, CrossTenantUserProfileSharing.ReadWrite.All
Delegated (personal Microsoft account) Not applicable
Application CrossTenantUserProfileSharing.ReadWrite.All

For delegated scenarios, the calling user must also be assigned the Global Administrator Azure AD role.

HTTP request

POST /directory/inboundSharedUserProfiles/{userId}/removePersonalData

Request headers

Name Description
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.


If successful, this method returns a 204 No Content response code.





HTTP/1.1 204 No Content