Skip to content

Latest commit

 

History

History
115 lines (89 loc) · 4.1 KB

File metadata and controls

115 lines (89 loc) · 4.1 KB
title Delete registeredOwners
description Remove a user as a registered owner of the device.
ms.localizationpriority medium
author michaelrm97
ms.subservice entra-directory-management
doc_type apiPageType
ms.date 10/25/2024

Delete registeredOwner

Namespace: microsoft.graph

Remove a user as a registered owner of the device.

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

[!INCLUDE rbac-devices-apis-write]

HTTP request

DELETE /devices/{id}/registeredOwners/{id}/$ref

Caution

If /$ref is not appended to the request and the calling app has permissions to manage the user who is a registered owner of the device, the user will also be deleted from Microsoft Entra ID; otherwise, a 403 Forbidden error is returned. You can restore deleted users through the Restore deleted items API.

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.

Example

Request

The following example shows a request.

DELETE https://graph.microsoft.com/v1.0/devices/{id}/registeredOwners/{id}/$ref

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