question

Synthetic-Sentience avatar image
0 Votes"
Synthetic-Sentience asked MarileeTurscak-MSFT answered

Add Azure Unlicesned users to Dynamic group

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

azure-ad-domain-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered

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")


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.