web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Automating Dataverse T...
Power Apps
Unanswered

Automating Dataverse Team Group Creation

(0) ShareShare
ReportReport
Posted on by 100

Hi Everyone,
AAD Security group can be assigned to Dataverse Team Group AAD manually.
Is there a way to automate the process? We have seperate Teams that Manage Azure Security and Dataverse Security. It would require some effort of coordinating to get/add create AAD SG --> Get the Security Identifier and have the other Teams use it when creating Dataverse Team Group?

I have the same question (0)
  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @ezFlow,

    Yes you can automate with by script like with PowerShell, but my preference is with Power Automate. In Power Automate you can sync the teams on a schedule or when a group is created, depending on your needs. Use the Graph API to get the desired groups with the HTTP connector and use the Dataverse connector to create/set the team and group Object ID. You can use the Graph Explorer to build and test the query. 

    You might initial need to work with the other team to get consent/right to use Graph if not already done. I use a service princpal to connect to graph via Power Automate. Here's a example:

     

    EricRegnier_0-1649969960832.png

    1. Using the HTTP connector, to get the groups, here I get all the groups. I use Acticee Directory OAuth to authenticate. 
    2. Then I parsed the body from the reponse to get the intellisense and creating a new Team in Dataverse. I set the team name and Object ID from the response.

    Hope this makes sense! 

  • Lorenzo6 Profile Picture
    9 on at

    Hi,

    I want to implement Azure DevOps Pipelines to create environments and Teams, but checking the documentation of PowerShell (https://learn.microsoft.com/en-us/powershell/module/microsoft.powerapps.administration.powershell/?view=pa-ps-latest) I couldn't find any action that creates Dataverse Teams.
    what I'm missing??

    Thanks

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @Lorenzo6, Dataverse teams is just another table in Dataverse so you can use the standard APIs to do this. Here's a popular PowerShell helper: https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard