Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Build Flow for custom Teams team approval with Graph API

(0) ShareShare
ReportReport
Posted on by 18

Hi,

In our organization, we create private Microsoft Teams for each client, where only a dedicated set of users are invited. These private teams are not visible to others, meaning they cannot be discovered via search by non-members. Team management is handled centrally, and this setup is not intended to change.

 

Currently, only a small group of individuals are owners of all the private teams. When a new employee is onboarded to a client, an existing team member manually adds the new user to the respective team. This action triggers an alert for the team owners, notifying them of a pending request.

 

However, this approach creates a challenge: with so many private teams, the team owners’ Teams client becomes cluttered and difficult to use.

To address this, I propose creating an automation that streamlines the handling of pending requests. My goal is to implement a solution using Power Automate and the Microsoft Graph API. Here’s the concept:

  1. Retrieve the list of groups that have an associated MS Teams team.

  2. Check each team for pending user requests.

  3. If a pending request exists, trigger an approval process.

  4. Upon approval, automatically accept the pending request, granting the user membership in the team.

     

Problem:
I am encountering an issue where I cannot see pending requests using the endpoint:
https://graph.microsoft.com/v1.0/teams/{{GroupId}}/members

 

Does anyone have experience with this or know an alternative method to retrieve pending requests for Teams membership?

Thank you for your insights!

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,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard