Home

Group Based Licensing - assign using PowerShell?

%3CLINGO-SUB%20id%3D%22lingo-sub-406045%22%20slang%3D%22en-US%22%3EGroup%20Based%20Licensing%20-%20assign%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-406045%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Folks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20sure%20I%20don't%20need%20to%20explain%20what%20Group%20Based%20Licensing%20is%20and%20I'm%20wondering%20how%20on%20earth%20I%20can%20configure%20license%20plans%20and%20assign%20to%20groups%20using%20PowerShell.%20Is%20it%20even%20possible%3F%20There's%20absolutely%20nothing%20in%20the%20documentation%20at%20the%20moment.%20The%20official%20docs%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fusers-groups-roles%2Flicensing-groups-assign%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fusers-groups-roles%2Flicensing-groups-assign%3C%2FA%3E)%20run%20you%20through%20the%20process%20of%20using%20the%20Azure%20Portal%20to%20add%20licenses%20to%20groups%2C%20with%20no%20mention%20of%20PowerShell%20at%20all.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20tried%20tinkering%20with%20Group%20objects%20in%20PowerShell%2C%20using%20both%20Msol%20(v1)%20and%20GraphAPI%20(v2)%20objects%20and%20tapping%20into%20the%20Licenses%20and%20AssignedLicenses%20(each%20have%20a%20'set'%20accessor)%20but%20with%20no%20success.%20I%20can%20add%20a%20license%20to%20the%20'AssignedLicenses'%20property%2C%20but%20I%20don't%20think%20there's%20any%20way%20to%20save%20it%20back.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20find%20group%20based%20licensing%20a%20really%20nice%20touch%2C%20though%20the%20way%20I%20see%20it%20at%20the%20moment%2C%20it%20still%20requires%20an%20admin%20to%20go%20to%20the%20Azure%20Portal%20to%20configure.%20That's%20a%20real%20shame.%20Am%20I%20missing%20something%20here%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-406045%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELicensing%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-744525%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20Based%20Licensing%20-%20assign%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-744525%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9252%22%20target%3D%22_blank%22%3E%40Jason%20Dunbar%3C%2FA%3E%26nbsp%3BAs%20of%20now%20the%20Powershell%20and%20Graph%20API%20support%20for%20this%20feature%20is%20at%20read-only.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22%3CSPAN%20class%3D%22sxs-lookup%22%3E%3CSPAN%3EFull%20functionality%20for%20group-based%20licensing%20is%20available%20through%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fportal.azure.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20portal%3C%2FA%3E%2C%20and%20currently%20PowerShell%20and%20Microsoft%20Graph%20support%20is%20limited%20to%20read-only%20operations.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fsv-se%2Fazure%2Factive-directory%2Fusers-groups-roles%2Flicensing-ps-examples%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fsv-se%2Fazure%2Factive-directory%2Fusers-groups-roles%2Flicensing-ps-examples%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20agree%20to%20this%20being%20a%20must-have%20in%20the%20future!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ERegards%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EViktor%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Jason Dunbar
Occasional Contributor

Hi Folks,

 

I'm sure I don't need to explain what Group Based Licensing is and I'm wondering how on earth I can configure license plans and assign to groups using PowerShell. Is it even possible? There's absolutely nothing in the documentation at the moment. The official docs (https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/licensing-groups-assign) run you through the process of using the Azure Portal to add licenses to groups, with no mention of PowerShell at all.

 

I've tried tinkering with Group objects in PowerShell, using both Msol (v1) and GraphAPI (v2) objects and tapping into the Licenses and AssignedLicenses (each have a 'set' accessor) but with no success. I can add a license to the 'AssignedLicenses' property, but I don't think there's any way to save it back.

 

I find group based licensing a really nice touch, though the way I see it at the moment, it still requires an admin to go to the Azure Portal to configure. That's a real shame. Am I missing something here?

1 Reply
Highlighted

@Jason Dunbar As of now the Powershell and Graph API support for this feature is at read-only.

 

"Full functionality for group-based licensing is available through the Azure portal, and currently PowerShell and Microsoft Graph support is limited to read-only operations. "

 

https://docs.microsoft.com/sv-se/azure/active-directory/users-groups-roles/licensing-ps-examples

 

I agree to this being a must-have in the future!

 

Regards,

 

Viktor

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies