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:
Retrieve the list of groups that have an associated MS Teams team.
Check each team for pending user requests.
If a pending request exists, trigger an approval process.
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!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.