Austin Lai | March 13th, 2022
A collection of Azure AD Dynamic Security Group - Rules for your reference.
(user.accountEnabled -eq True)
(user.usageLocation -eq "US")
OR
(user.usageLocation -eq "Japan")
user.accountEnabled -eq True and ( user.usageLocation -eq "US" or user.companyName -contains "XXXYYYZZZ" ) and ( user.mail -contains "XXXYYYZZZ.com" and user.mail -notIn ["[email protected]","[email protected]"] and user.mail -notIn ["[email protected]"])
Do let me know any command or step can be improve or you have any question you can contact me via THM message or write down comment below or via FB