👷‍♂️
Work
  • 💻SNOW
    • Catalog Forms
    • Knowledge Base
  • ☁️Azure
    • Graph Permissions
    • App Registration Auths
      • Postman
      • Graph ROPC Federated Account
        • MSAL UsernamePasswordCredential
        • Java
        • Python
        • C#/VB code Auth
      • Powershell
      • Java Auth x EWS
      • Python Auth x Sharepoint
      • C# Auth x Sharepoint
    • MFA
    • Dynamic Group
    • AAD Device Pending
    • O365 Device Enrollment
    • AAD Device Troubleshoot
    • AAD Mobile Troubleshooting
    • ADO Service Principal
    • External B2B
    • VLSC Admin
    • PowerBI Session Timeout
    • SSO issues
  • 🔓OKTA
    • SVC Account
    • OKTA Integration
    • Access Issues
  • 👷‍♂️Workday
    • Account Lifecycle
    • Coupa
  • 📨O365
    • OOF of Distribution List
    • Mailbox Recovery
    • Mailbox Existence
  • 🦄Misc
    • Windows Terminal
    • Google Auth Export
    • MS Teams Issues
  • 🌥️Cloud Stuff
    • 🚀Benchmarking
      • Vultr
    • 💳Cloud Server
    • ♻️Email and Spams
  • 🔬Open Source
    • Pending
      • Matrix/Synapse
      • Huginn
      • ChangeDetection
    • Tested
      • Codex Docs
      • Ghost Blog
      • n8n Automation
Powered by GitBook
On this page
  1. Azure

Dynamic Group

Use case: Filter all Asia users for email comms

PreviousMFANextAAD Device Pending

Last updated 2 years ago

Dynamic group membership updates are expected to process for all groups within 24 hours.

Rules for the Dynamic Group

(user.country -in ["MY","SG","VN","CN","TW","HK","IN","ID"]) and 
(user.displayName -in ["Snow Wang","Wenjian Khor"]) and 
(user.accountEnabled -eq True) and (user.mail -contains "jabil.com")

This will create a group with admin and requestor for the next step, which is disabling the Welcome email since the scope is huge for this group, and we don't want to spam everyone's inbox

Get the current setting for the group with the ExchangePowershell module

Install-Module ExchangePowershell
Import-Module ExchangePowershell

Connect-ExchangeOnline

#Get current setting and update
Get-UnifiedGroup -Identity "GroupEmail@domain.com" | Select WelcomeMessageEnabled
Set-UnifiedGroup -Identity "GroupEmail@domain.com" -UnifiedGroupWelcomeMessageEnable:$false

#Check and compare with previous output
Get-UnifiedGroup -Identity "GroupEmail@domain.com" | Select WelcomeMessageEnabled

Now replace the user.displayName -in ["Snow Wang","Wenjian Khor"]) with user.displayName -NotIn ["People to exclude from the group"])

By default, all emails to this "Group Address" will end up in the Group inbox. We need to adjust the setting below to get the email forwarded to the group users.

If required, control who can send email to this DL via this setting on Exchange Admin

The below error will show if you do not have permission to send email to this group

☁️
Learn more