Multiple AD group members to be added to Teams (M365 Group)

GoodResource 401 Reputation points
2023-06-06T14:02:16.7733333+00:00

Hi,

We have a requirement to sync Multiple AD groups which are syncing to Azure to a target Teams. Team create a M365 group so our thought process is to sync all the source AD groups to target M365 group. I know one group to M365 group works with Power Automate. But not sure what could be an effective solution where source is multiple AD groups (Power BI report access through these groups) to a target M365 group.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,885 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bukke SanthiSwaroop Naik 390 Reputation points
    2023-06-06T14:30:45.5066667+00:00

    Here's a suggested approach to achieve the sync between multiple AD groups and a target M365 group using Power Automate:

    Set up the necessary connectors:

    • Azure Active Directory: This connector allows you to interact with Azure AD and retrieve information about AD groups.
    • Microsoft 365 Groups: This connector enables you to manage M365 groups.

    Create a new Power Automate flow:

    • Start the flow with a trigger that suits your needs. For example, you could set it to run periodically or trigger it manually.
    • Use the "List groups" action from the Azure Active Directory connector to retrieve information about the source AD groups.
    • Iterate through each AD group using a loop or the "Apply to each" action.
    • Within the loop, check if the current AD group needs to be synced to the target M365 group based on your criteria. For example, you might check for specific attributes or conditions associated with the AD group.
    • If the AD group meets the criteria for syncing, use the "Add member" action from the Microsoft 365 Groups connector to add the members of the AD group to the target M365 group.
    • Repeat the loop for each AD group.
    1. Test and deploy the Power Automate flow:
    • Validate the flow by running it with a few sample AD groups to ensure it functions as expected.
    • Once validated, schedule the flow to run automatically or trigger it manually whenever required.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.