You can either periodically query the membership of the group, or use the Unified audit log events: https://learn.microsoft.com/en-us/microsoft-365/compliance/search-the-audit-log-in-security-and-compliance?view=o365-worldwide#azure-ad-group-administration-activities
How to make Azure AD Group Members changes trigger custom powershell script?
Kyi Soe Thin
41
Reputation points
Hello,
I would like to run a powershell script everytime there is a new member in a specific group in Azure AD.
Can you please suggest me the best way for it?
Thanks.