Skip to main content

mam_user_device_by_device_names

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

Overview

Namemam_user_device_by_device_names
TypeResource
Idazure_extras.intune.mam_user_device_by_device_names

Fields

The following fields are returned by SELECT queries:

Device entity.

NameDatatypeDescription
idstringResource Id
namestringResource name
locationstringResource Location
propertiesobject
tagsobjectResource Tags
typestringResource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecthostName, userName, deviceName$selectGet a unique device for a user.

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
deviceNamestringdevice name
hostNamestringLocation hostName for the tenant
userNamestringunique user name
$selectstringselect specific fields in entity.

SELECT examples

Get a unique device for a user.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_extras.intune.mam_user_device_by_device_names
WHERE hostName = '{{ hostName }}' -- required
AND userName = '{{ userName }}' -- required
AND deviceName = '{{ deviceName }}' -- required
AND $select = '{{ $select }}'
;