How to assign a group to a device configuration?

Shannon Hagmaier 0 Reputation points Microsoft Employee
2025-01-03T14:31:36.6333333+00:00

In C# I am using the graph sdk to create a device configuration and I am trying to assign it to a security group but keep getting an OData error message. I am following the instructions from this link: https://learn.microsoft.com/en-us/graph/api/intune-deviceconfig-deviceconfiguration-assign?view=graph-rest-1.0&tabs=csharp . Is there any other way to assign a group to a device configuration that was successfully created?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,721 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 8,665 Reputation points Microsoft Vendor
    2025-01-06T02:14:45.3966667+00:00

    Hello Shannon Hagmaier,

    Thank you for reaching out to Microsoft Support!

    Graph API only provides the endpoint for assign device configuration, you can share your code and error information, we will help you further, or you can assign in Intune, the reference document is as follows:

    https://learn.microsoft.com/en-us/mem/intune/configuration/device-profiles

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.