How to add or remove group members automatically using Microsoft Entra ID (formerly Azure AD)?
Within Microsoft Entra ID, there's a convenient feature enabling automatic inclusion or exclusion of users from distribution groups. This means you're spared the manual effort of managing these groups every time there's a change. The steps mentioned below can be used to add or remove group members automatically in Microsoft Entra ID. ManageEngine M365 Manager Plus, an extensive tool used for reporting, managing, monitoring, auditing, and creating alerts for critical activities in your Microsoft 365 environments, can also be used for this purpose.
The following table is a comparison how to add or remove group members automatically in Microsoft Entra ID using the native admin center and M365 Manager Plus.
Entra ID
Steps to add or remove group members automatically using the native admin center
- Log in to the Microsoft Entra admin center with privileges equivalent to a Groups Administrator or higher.
- Choose Microsoft Entra ID from the available options.
- Navigate to Groups > All Groups > New group.
- In the New Group pane,
- Enter the group name, email address, and description for the group.
- Change Membership type to Dynamic user.
- Click No owners selected and navigate to the Add Owners pane. Scroll through the list to find the desired owners, and click on their names to add them to the group.
- Click Select to save the selected owners and close the Add Owners pane.
- Choose Add dynamic query in the Dynamic user members box.
- In the Dynamic membership rules pane,
- In the Property field, click on the existing value and select companyName.
- Verify that the Operator field has Equals selected.
- Select the Value field and enter Zylker.
- Click Get custom extension properties to enter an application ID to retrieve all available custom extension properties for creating a rule.
- When you're done, click Save to close Dynamic membership rules.
- To finish creating the group, select Create on the Group pane.
M365 Manager Plus
Steps to add or remove group members automatically using M365 Manager Plus
- Log in to M365 Manager Plus and navigate to the Management tab> Azure Active Directory >Group Management > Dynamic Distribution Group creation.
- Select the Microsoft 365 Tenant and the dynamic distribution group creation template.
- In the General tab, configure the Display name, Primary SMTP Address, Alias, and other information such as,
- Moderation - Set it to True if you want all the senders to be notified when their messages aren't approved.
- Requires Sender Notification -Set it to True if you want the sender to be authenticated every time they send a mail on behalf of the group.
- Managed By - Select one or multiple owners of the group.
- In the Filters tab,
- Under Included Recipients, choose either All Recipients or Choose Recipients.
- Under Filters, choose Conditional Company below the Attribute field.
- Under Value, enter Zylker.
- The Exchange tab allows you to configure MailTip and Custom Attributes for the Microsoft 365 group.
- Click Apply to finish.

Limitation of using Entra ID for adding or removing group members automatically
Administrators will require at least a Groups Administrator role to perform this operation.
Using M365 Manager Plus for adding or removing group members automatically in Entra ID
M365 Manager Plus is an extensive Microsoft 365 tool used for reporting, managing, monitoring, auditing, and creating alerts for critical incidents. With M365 Manager Plus, you can enhance the administration of your entire Microsoft 365 environment.
- Delegate specific tasks, access to selected reports, or control over specific objects in your environment via Virtual Tenants to your help desk, ensuring tasks are performed without elevating their Microsoft 365 privileges.
- Manage mailboxes, users, groups, sites, and contacts effortlessly in bulk.
- Gain a thorough understanding of your environment in Exchange Online, Azure Active Directory, SharePoint Online, OneDrive for Business, and other Microsoft 365 services with detailed reports.
- Keep tabs on even the most granular user activities in your Microsoft 365 environment.
- Monitor the health and performance of Microsoft 365 features and endpoints around the clock.
Effortlessly schedule and export reports on your Microsoft 365 environment.
Streamline your Microsoft 365 governance and administration with M365 Manager Plus
Get Your Free TrialRelated Resources
-
Entra ID administration
- How to create custom roles in Microsoft Entra ID
- How to setup SSO in Microsoft Entra ID
- How to configure Conditional Access in Microsoft Entra ID
- What is Microsoft Entra ID?
- What are Microsoft Entra ID administrative units
- How to configure external authentication methods in Microsoft Entra ID
- How to set up self-service group management in Entra ID
- How to takeover unmanaged directory as administrator
- How to change authentication type of subdomain
- What is self-service signup in Entra ID
- Delete a tenant in Microsoft Entra ID
- Manage custom domain names in Microsoft Entra ID
- Multi-tenant organization interaction
-
Entra ID auditing and reporting
-
Entra ID bulk user management
-
Entra ID dynamic groups
-
Entra ID group management
- How to enforce naming policy on Microsoft 365 groups in Entra ID
- How to clean up resources related to all user groups
- How to create basic groups and add members in Entra ID
- Group management cmdlets
- How to add group to another group in Entra ID
- How to delete a group in Entra ID
- How to remove a group from another group in Entra ID
- Check import status
- Edit group settings in Entra ID
- Migrate users with individual licenses to groups
- Restore deleted groups in Microsoft Entra ID
- Set expiration for Microsoft 365 groups in Entra ID
-
Entra ID group membership
- How to utilize Microsoft Entra groups in Entra ID
- How to add group members in Entra ID
- How to add group owners in Microsoft Entra ID
- How to add or remove group member automatically in Entra ID
- How to create group of guest users using native admin center
- How to manage groups and group memberships in Entra ID
- How to remove guests from all user groups in Entra ID
- How to utilize groups and administrator roles in Entra ID
- Add or remove a group from another group in Entra ID
- Bulk group members addition in Entra ID
- Bulk remove group members from Entra ID groups
- How to remove members/owners of a group in Entra ID
-
Entra ID group reports
-
Entra ID license management
- How to automate inactive license management for Entra ID users
- How to change license assignments for user in Entra ID
- How to assign licenses to groups in Entra ID
- How to leverage group-based licensing for optimizing license management in Entra ID
- License assignment troubleshooting
- Assign licenses in Microsoft Entra ID
- Azure AD license membership modification
- Remove licenses in Microsoft Entra ID
- View license plans and details in Microsoft Entra ID
-
Entra ID User management
- How to manage permissions using access reviews in Microsoft Entra ID
- How to restrict guest access permissions in Entra ID
- How to clean up unmanaged Microsoft Entra accounts
- How to assign custom security attributes to users in Entra ID
- How to clean up stale accounts using access reviews
- How to share accounts with Entra ID
- How to update custom security attributes to users in Entra ID
- Add guest users
- Add users to Azure AD
- Assign user roles with Entra ID
- Close user account in an unmanaged Microsoft Entra organization
- How to revoke user access in Microsoft Entra ID using PowerShell
- Microsoft 365 delete users
- Remove custom security attribute assignments from users
-
Entra ID user reports
- How to monitor risky sign-ins in Microsoft Entra ID
- License usage reports in Microsoft Entra ID
- How to get the last logon date of users in Microsoft Entra ID
- How to view Microsoft 365 login attempts using PowerShell and Microsoft Entra ID
- How to report the MFA status for users in Microsoft Entra ID
- How to monitor recently created users in Entra ID
- Track password changes by admins in Microsoft Entra ID
- How to monitor user role changes in Entra ID
- How to track self-service password resets in Microsoft Entra ID
- How to create custom sign-in reports in Entra ID
- How to find deleted users in Entra ID
- How to verify deleted users in Entra ID
- Filter users based on custom security attributes
- Download Microsoft 365 user list
-
Entra ID workbooks
- How to create custom Microsoft Entra ID workbooks
- What are Microsoft Entra ID workbooks
- How to handle privilege escalation in Microsoft Entra ID
- How to monitor risky sign-ins using Microsoft Entra ID workbooks
- How to monitor your Microsoft 365 MFA setup using Entra ID workbooks
- How to audit for app permission threats with Microsoft Entra workbooks
- Conditional Access Gap Analyzer workbook in Microsoft Entra ID
-
Exchange Online administration
- How to change deleted items retention for Exchange Online mailboxes
- How to change the branding of clutter notifications in Exchange Online
- How to configure message delivery restrictions for Exchange Online mailboxes
- How to configure moderated recipients in Exchange Online
- How to create user mailboxes in Exchange Online
- How to enable and disable MAPI for a mailbox in Exchange Online
- How to enable or disable Outlook on the web for a mailbox in Exchange Online
- How to manage mail contacts in Exchange Online
- How to manage permissions for recipients in Exchange Online
- How to manage resource mailbox in Exchange Online
- How to save sent items in a delegators mailbox in Exchange Online
- How to create and edit shared mailboxes in Exchange Online
- How to add or remove email address for a mailbox in Exchange Online
- How to configure email forwarding for a mailbox in Exchange Online
- How to convert a mailbox in Exchange Online
- How to delete or restore user mailboxes in Exchange Online
- How to manage user mailboxes in Exchange Online
-
Exchange Online groups
- Create and manage groups in Exchange admin center in Exchange Online
- How to create and manage distribution list groups in Exchange Online
- How to create and manage dynamic distribution list groups in Exchange Online
- How to create distribution group naming policy in Exchange Online
- How to manage guest access to Microsoft 365 groups in Exchange Online
- How to manage role groups in Exchange Online
- How to override the distribution group naming policy in Exchange Online
- How to view members of a distribution group in Exchange Online
-
Microsoft Teams
-
Public Folders
- Create public folder calendar in Exchange Online
- How to restore deleted public folder in Exchange Online
- How to setup public folders in new organization
- Migrate public folders to Microsoft 365 groups in Exchange Online
- Recover deleted public folder mailbox in Exchange Online
- How to mail-enable and mail-disable public folders in Exchange Online