Skip to main content

Notifications

Power Automate - General Discussion
Answered

Teams Group Email ID from Power Automate

(0) ShareShare
ReportReport
Posted on by 8

I know how to create a Team using Power Automate. But, once the Team is created, I need to get the Group Email associated with the Team so I can use that to set unique permission in a SharePoint Library and to add to a Power BI App audience. Seeking your help. Thank you!

Categories:
  • Waageeshwara Profile Picture
    Waageeshwara 8 on at
    Re: Teams Group Email ID from Power Automate

    @SudeepGhatakNZ 
    Thank you very much. That worked like a charm.

  • SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,231 on at
    Re: Teams Group Email ID from Power Automate

    @Waageeshwara 

    This still works. Just check if your REST query is returning any results

     

    SudeepGhatakNZ_0-1717055141351.png

     

  • Waageeshwara Profile Picture
    Waageeshwara 8 on at
    Re: Teams Group Email ID from Power Automate

    Hi @SudeepGhatakNZ 

    I have tried using your solution, I have used URI = https://graph.microsoft.com/v1.0/groups in the Send an HTTP request V2 step. I am not able to get any results for the Teams site that I am searching for, Is there a limit in the output in the step as when I look through the results manually also I can't find the Teams group as well.

    So I have changed the URI to below which gives me the results
    https://graph.microsoft.com/v1.0//groups?$filter=startswith(displayName, 'TeamSiteName')

    Waageeshwara_0-1717041038258.png

    But now I cannot get the email from Apply to each due to the below error
    Action 'Apply_to_each' failed: The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@outputs('Compose')' is of type 'Object'. The result must be a valid array.

    Thank you

  • Verified answer
    SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,231 on at
    Re: Teams Group Email ID from Power Automate

    @Waageeshwara 

    You can achieve this using GRAPH API

     

    SudeepGhatakNZ_0-1717034030072.png

     

    SudeepGhatakNZ_1-1717034065600.png

     

    SudeepGhatakNZ_2-1717034105580.png

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard