Assign Licenses to users with On prem AD using Graph API

Anonymous
2023-09-18T18:40:15.43+00:00

Hi team ,

I am new into Azure Ad and have to implement a solution .

Can we use VM to connect to On prem AD and access it using Graph API ?

I basically do not have a direct access to On prem AD .

But need the following to be done :

  1. check if an email address already exist in AD using API
  2. Assign License automatically to new users using API
  3. Get log of user creation & Lisence errors using API

Thanks in Advance

Microsoft Security | Microsoft Graph
Microsoft Security | Microsoft Entra | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Flores 80 Reputation points Microsoft Employee
    2025-06-05T20:34:06.4366667+00:00

    You could use a dynamic group if the accounts are synchronized to Microsoft Entra with a rule like:

    (user.mail -endsWith "domain.com")

    Then you could assign the licenses to that group.

    https://learn.microsoft.com/entra/identity/users/groups-dynamic-membership
    https://learn.microsoft.com/entra/identity/users/licensing-admin-center

    0 comments No comments

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.