Views:

Applies to Product- Power Automate

What’s happening?

Unable to add or remove members from a private channel in Microsoft Teams using the "send an HTTP request" action in Power Automate, despite being the owner of the team. The error message indicates a lack of necessary permissions.

Reason:
This arises due to insufficient API permissions required for the operation. Specifically, the user needs the following permissions: ChannelMember.Write.All, Group.Write.All, and Directory.Write.All.


Resolution:

  1. Confirm that the necessary API permissions (ChannelMember.Write.All, Group.Write.All, and Directory.Write.All) are granted to the application associated with the service account in Azure Active Directory.
  2. Ensure that the endpoint used for the HTTP request is correctly formatted as https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/members.
  3. Check the Azure AD app registration to verify that the required API permissions are correctly configured for the HTTP request.
  4. If the issue persists, consider using premium connectors like "HTTP with Azure AD" for better integration and features in the Power Automate flow.
  5. Verify if there are any Azure AD synchronization delays that might be affecting the immediate reflection of group membership changes.