about Set-MgUserLicense -skuid number limit

Mobu 20 Reputation points Microsoft Vendor
2024-06-13T10:44:46.66+00:00

Hi team,

I'm automating user license assignment using Set-MgUserLicense command. I'd like to assign multiple licenses to a user at one time as described in this doc:

https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/set-mguserlicense?view=graph-powershell-1.0#example-2-assign-more-than-one-licenses-to-a-user

I'm wondering when specify -AddLicenses parameter with skuid, is there a maximum limit for the number of licenses that I can assign at once. I understand it should not exceed the total number of licenses I own in my tenant. Just want to check any limitation or restriction on the Graph API or Entra ID side.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,324 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,381 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,559 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 145.1K Reputation points MVP
    2024-06-13T12:59:29.46+00:00

    Im not aware of any limits there.

    Consider using Licensing groups instead of direct assignment however and simply add or remove users to those groups as needed

    https://learn.microsoft.com/en-us/entra/fundamentals/concept-group-based-licensing

    0 comments No comments