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

Notifications

Announcements

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:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard