Add device to Azure AD Group

Tim Nielsen 21 Reputation points

I want to add a list of devices to a specific group in azure AD via the graph API.

I already have a list of both Device ID's and AADDeviceID's, but this endpoint only accepts objectids:

So my question is, how do I get the ObjectID from Graph API

Bonus info:
This dosn't accept DeviceID

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,869 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,943 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,161 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 98,281 Reputation points MVP

    The value you need is the "id", as returned from the GET /devices endpoint. Then pass the value in a /members/$ref POST request:

        "": ""  


0 additional answers

Sort by: Most helpful