Use AAD Groups to set up your PowerApps / Dynamics teams

By | August 23, 2019


Have you tried creating a team lately? If not, give it a try, and you may see a couple of team types that were not there before and that might actually get your AD admins excited:


Now imagine that there is a group in AAD which you want to use to set up a team in PowerApps. Previously, it would be a relatively complicated task that would require some kind of integration to be set up. Now you can do it out of the box. Setup the teams in PowerApps, assign security roles, and let AD/Office admins manage the membership outside of Dynamics.

Here is an AAD group:


Here is a team in PowerApps that’s using the ID of the AAD group above:



Here is something important that I did not realize first: any Azure AD group membership maintenance done on the team member in Azure AD will not be reflected until the next time the team member logs in or when the system refreshes the cache (after 8 hours of continuous log-in).

But, once I’ve logged out and logged in under each of the user accounts above, I can see them added to the team:


And, once it happens, the users will get their permissions derived from the team. Which means that the next time you need to create a Sales Person user account in Dynamics, you might probably just add that user to the corresponding AD group.

7 thoughts on “Use AAD Groups to set up your PowerApps / Dynamics teams

  1. Benedikt

    Hej Alex,
    nice article. I try to run a plugin when a user will be added to a Team of the type “AAD Security Group”. But unfortunately the messages i tried (AddMember, AddMembers, AddMembersBul and Associate) will not get triggered. Do you know which Message should be used?

    1. Ben Hosking

      in the documentation

      Team members are maintained in each group team at run-time and the operation is done at the database level; therefore, the update to group team event is not available for plugin.

      1. Pierluc SS

        I am facing the same challenge as Benedikt, is there an event available any other way through the PowerPlatform?

  2. Django Lohn

    Great blog!
    You happen to know how and where to assign Security Roles to an AAD Security Group Connected Team??
    When selecting Owner Team the Manage Roles button shows, but for an AAD Security Group Connected Team it disappears…

  3. Niels


    Have you experienced, that AAD Security Group Teams are created automatically in Dynamics 365? After I created my first team, suddenly three teams were created automatically corresponding with the names of AAD Security Groups. The weird thing though is, that Object ID doesn’t match 🧐


Leave a Reply

Your email address will not be published. Required fields are marked *