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,239 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,893 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,128 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 71,626 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