A community member has associated this post with a similar question:
How to get assignedLicenses from Microsoft Graph

Only moderators can edit this content.

How to get assignedLicenses from Microsoft Graph

Robin 66 Reputation points
2024-04-19T18:52:25.3633333+00:00

Hi,

I am using a C# program to retrieve user information from Microsoft Graph. Currently I am passing the following URL to get the information I need.

https://graph.microsoft.com/v1.0/users?$filter=accountEnabled eq true&$select=displayName,id

I want to extract only users who have any valid license. I don't know how to filter using assignedLicenses on this URL. Can someone please help?

Thanks.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,634 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,271 questions
{count} votes