Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Build Flow for custom Teams team approval with Graph API

Posted on 26 Nov 2024 15:00:23 by 2

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,129

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,797

Leaderboard