Forum Discussion
PatrickF11
Jul 11, 2019MCT
dynamic group based on assigned license
Hi, is it possible to create a group with users based on a assigned license? So i want to include all users into this specific group who has e.g. an E3 license assigned, but not an E5. It se...
PatrickF11
Dec 03, 2021MCT
Am i missing something? With this you're just querying users who are licensede in any way, isn't it?
The initial quesiton was: How to group EXACT license like "M365 E3", not querying on any SKU which could be part of some other license as well.
shathaway unfortunatelly not, but i (personally) don't need this anymore. 😄
(nevertheless the question is still open.)
terocky
Feb 08, 2022Copper Contributor
Hi PatrickF11, Did you find a solution yet? I am trying to do same as i have F3, E1 and E3 license users now.
- DomAnnicetteMar 08, 2022Brass ContributorI just found this (because I'm trying to achieve the same goal). It works fine.
https://365bythijs.be/2020/01/20/creating-a-dynamic-group-with-all-aad-premium-licensed-users/
You can use this as an example to retrieve your subscription ObjectID and then ServicePlanID. - PatrickF11Feb 15, 2022MCT
You can do this with (assignedPlan.service -match "NAME") as i mentioned in the initial posting or as Ketzpatel said with the id. Currently i don't know any other / better method.
- terockyFeb 15, 2022Copper Contributor
PatrickF11 thanks PatrickF11