web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Graph HTTP Call to add...
Power Automate
Answered

Graph HTTP Call to add owner to a teams Channel

(0) ShareShare
ReportReport
Posted on by 38

Hi, all I found this post https://powerusers.microsoft.com/t5/General-Power-Automate/Add-user-to-Microsoft-Teams-Channel-private-using-Microsoft-Flow/m-p/477305#M46207 and many others about how to create a channel and add a new owner.  However, they all use the old HTTP connector.  I need to use this one: 

wind0soft_0-1698102711952.png

 

I can create a channel no problem using this connector:

wind0soft_1-1698102711991.png

 

But anytime I try and add a new owner the flow will not save, even if I create the channel and then in a separate call try to update the owners:

wind0soft_2-1698102711955.png

 

I've tried this code:

{ "@odata.type": "#Microsoft.Graph.channel", "membershipType": "private", "displayName": "Private corner again", "description": "This is for private content", "members": [ { "@odata.type":"#microsoft.graph.aadUserConversationMember", "user@odata.bind":"https://graph.microsoft.com/beta/users('{UserID1}')", "roles":["owner"] }, { "@odata.type":"#microsoft.graph.aadUserConversationMember", "user@odata.bind":"https://graph.microsoft.com/beta/users('{UserID2}')", "roles":["member"] }, ] }

 

And I've tried adding a second @ sign but it will not save.  

 

wind0soft_3-1698102712052.png

 

 

Any ideas would be greatly appreciated!

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @wind0soft ,

     

    Please remove the comma.

    vxiaochenmsft_0-1698110316184.png

     

    Best Regards,

    Wearsky

  • wind0soft Profile Picture
    38 on at

    Hi all-

     

    I really appreciate the feedback but unfortunately it didn't work for me.  Yes in the code I posted there is a extra comma.  However, even with code that is validated 

    wind0soft_0-1698160899884.png

     

    I get an error in power automate

    wind0soft_1-1698160899909.png

     

    However, if I use this connector 

    wind0soft_2-1698160899885.png

     

     

    The code will save but then I get a error when it runs with a Bad URI result.  

     

    Any thoughts?

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @wind0soft ,

     

    Please replace @ with @@.

     

    Best Regards,

    Wearsky

  • wind0soft Profile Picture
    38 on at

    Thank you for the response, unfortunately adding @@ didn't help 😞  Is there a way to use the graph for groups API?

     

    This is a major component to what I'm building and could REALLY use the help.

  • Verified answer
    wind0soft Profile Picture
    38 on at

    Hi all, just as a FYI, my issue was that my flow was somehow corrupt.  After many hours we found that a channel with a specified owner COULD be created in the HTTP Graph Azure AD connector using the original code!!   

  • wind0soft Profile Picture
    38 on at

    Well, the original code minus the rouge comma!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard