You should be able to use Microsoft Graph and filter by the assignedPlan capabilitySatus:
(user.assignedPlans -all (assignedPlan.capabilityStatus -ne "Enabled")) -and (user.userType -eq "Member")
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I have a scenario where I am looking to filter out all Unlicensed Azure users.
I'm thinking if all the unlicensed Azure users are part of a group I could then enact actions against the group.
I could look to have this scripted but then I heard of dynamic groups and was wondering could I simply have all unlicensed users
auto added to that Dynamic Azure group ?
When looking at dynamic groups in the Azure GUI I seen standard AD fields but nothing such as an unlicensed user option.
Is this possible ?
Thanks
You should be able to use Microsoft Graph and filter by the assignedPlan capabilitySatus:
(user.assignedPlans -all (assignedPlan.capabilityStatus -ne "Enabled")) -and (user.userType -eq "Member")
The rule syntax in Marilee's post works perfectly if you want to exclude Guest users. To include Guest users in the unlicensed users group, just use the first part.
(user.assignedPlans -all (assignedPlan.capabilityStatus -ne "Enabled"))