Skip to main content

registered_owners

Creates, updates, deletes, gets or lists a registered_owners resource.

Overview

Nameregistered_owners
TypeResource
Identra_id.devices.registered_owners

Fields

The following fields are returned by SELECT queries:

Retrieved collection

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
deletedDateTimestring (date-time)Date and time when this object was deleted. Always null when the object hasn't been deleted. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdevice_idConsistencyLevelRetrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner.
add_refinsertdevice_idAdd a user as a registered owner of the device.
remove_refdeletedevice_id, directory_object_idIf-MatchRemove a user as a registered owner of the device.
remove_ref_2deletedevice_idIf-MatchRemove a user as a registered owner of the device.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
device_idstringThe unique identifier of device
directory_object_idstringThe unique identifier of directoryObject
ConsistencyLevelstringIndicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries
If-MatchstringETag

SELECT examples

Retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner.

SELECT
id,
deletedDateTime
FROM entra_id.devices.registered_owners
WHERE device_id = '{{ device_id }}' -- required
AND ConsistencyLevel = '{{ ConsistencyLevel }}'
;

INSERT examples

Add a user as a registered owner of the device.

INSERT INTO entra_id.devices.registered_owners (
directoryObjectId,
device_id
)
SELECT
'{{ directoryObjectId }}',
'{{ device_id }}'
;

DELETE examples

Remove a user as a registered owner of the device.

DELETE FROM entra_id.devices.registered_owners
WHERE device_id = '{{ device_id }}' --required
AND directory_object_id = '{{ directory_object_id }}' --required
AND If-Match = '{{ If-Match }}'
;