Adding Device Types for Microsoft Intune Managed Devices
Our applications replicate the source database according to the source data model. Since Intune doesn’t have a device type property, our schema doesn’t include the device types either.
There is a workaround for this, as follows, without changing our object schema structure. As the Jira Admin, you can extend the structure and improve it. The most relevant information you can use for deciding on the device type is the Model of the device. Below is our suggestion:
Note: Changing the auto generated object schema structure would break our import mapping and result in the imports failing. This also leaves your licensed software out of our support scope.
1- Create one new object type: “Device Types”
2- Create your device types as objects in the Device Types object type. For example:
Name |
---|
Laptop |
Mobile Phone |
Tablet |
Printer |
3- Add Avatars to these objects if you like.
4- Add one attribute to “Models” for “Device Type” and create a reference to “Device Types” object type.
5- Update the models and map them to the device types manually.
Name | Device Type |
---|---|
iPhone 12 | Mobile Phone |
Macbook Pro | Laptop |
You need to keep the device models table up to date manually.
6- This way, you will have the following relationship:
Managed Devices → Models → Device Types
As a result, you will be able to use AQL with dot notations and easily find the device types.
"Managed Devices".Models."Device Type" = "Laptop"
Please note that dot notation doesn’t work everywhere. You may need to use the outR()
function to achieve the same.
7- To improve the model a bit more, optionally, you can add one new attribute to the “Managed Devices” object type for “Device Type” as a reference to the “Device Types” object type.
8- You can create an automation rule that runs every hour and checks if there are any “Managed Devices” without a “Device Type”. If it finds objects, it can update the “Device Type” property according to the “Device Models” object type using the relationship.
In summary, you can have a new attribute showing the type of the device. This would help you to provide better Assets custom field filtering for your portal customers. For example, you may have an Assets custom field showing the list of Device Types and then a second Assets custom field showing the devices filtered according to the first custom field.