Skip to main content
Community site session details

Community site session details

Session Id : AWDDOJO7GFnWsV+kUbyzDe
Power Automate - Building Flows
Unanswered

Adding user to a private channel

Like (0) ShareShare
ReportReport
Posted on 10 Mar 2024 10:43:13 by 3

Hello, I am trying to add a user to a private teams channel group using the Teams Send a Microsoft Graph HTTP Request action. I've done like the screenshot below. But I get a "forbidden" return. I've read a bit and apparently I need to add Authorization but I have no idea how to make it work.

I tried creating an app with the ChannelMember.ReadWrite.All permission and using a normal HTTP action, which probably would have worked but required PowerAutomate Premium.

 

Is what I want to do achievable using PowerAutomateFree? 

 

StefanVestin_0-1710067167986.png

 

I'm new to Power Automate and still learning. Any guidance is appreciated.  

 

Categories:
  • D.Cayanan Profile Picture
    71 on 14 Mar 2025 at 19:13:53
    Adding user to a private channel
    Old post, but for those looking for an answer. Once you have Register this App with ChannelMember.ReadWrite.All permission. You will get a Secret Key which will need to use that to generate an Access Token. 

    With the Access Token, you will need to adjust the header: Authorization: Bearer <YOUR_ACCESS_TOKEN>

    Keep in mind that this access token will expire every hour unfortunatly, so you will need a way to constantly generate a new one for it to use.
  • mjburley Profile Picture
    370 on 02 May 2024 at 13:53:40
    Re: Adding user to a private channel

    Something I haven't done for a while but I know the following worked once! Does not mean it still works:

    Extract below (note this was taken from a bigger request to create the team at the same time).

     "members": [
     {
     "@odata.type": "#microsoft.graph.aadUserConversationMember",
     "roles": [
     "owner"
     ],
     "user@odata.bind": "https://graph.microsoft.com/v1.0/users('7b1c736d-1a63-4760-89da-360d22144bb8')"
     }

     

    For context, this is from part 6 of an old blog post of mine:

    Power Automate: Creating Teams, Tabs and Channels – Power Platform Always Learning (illuminocity.com)

  • bbald Profile Picture
    7 on 01 May 2024 at 17:55:47
    Re: Adding user to a private channel

    @StefanVestin - did you ever find a solution? I have been going down the same path - and am now getting the same error. Currently using the 'Send a Graph HTTP Request' connector - but I am recieving the 'Forbidden' message as well...

  • StefanVestin Profile Picture
    3 on 11 Mar 2024 at 09:04:22
    Re: Adding user to a private channel

    Thanks for your answer. I'm the owner of both the team and the private channel and I've tested in Graph Explorer to make sure it works there, so okay, it must be the action that can't do this. 

     

    Thanks anyways. 

  • tom_riha Profile Picture
    10,127 Most Valuable Professional on 10 Mar 2024 at 19:42:35
    Re: Adding user to a private channel

    Hello @StefanVestin ,

    you don't need any authorization for the available HTTP request actions as they're already authenticated - they're using your connector = delegated permissions. Authorization is needed only when you use the generic HTTP request.

    I'd say that if it doesn't work then you (or the account you're using in that action) either don't have enough permissions to add members to that private channel or the action can't do it in which case you'll need a premium license and the generic HTTP request.

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading started
Loading complete