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 / Post Message as flow b...
Power Automate
Unanswered

Post Message as flow bot - unauthorized

(2) ShareShare
ReportReport
Posted on by Microsoft Employee

When using the action "Post Message as Flow Bot to a channel" I recieve the following error:

 

The sender with objectId '1881764e-e5f0-4e17-82f5-b7730c5e6e84' is not a member of the team.

 

Any hints on how to resolve this?

Categories:
  • Brad_Groux Profile Picture
    4,556 on at

    This is an authentication issue, and the account you are trying to run the Microsoft Teams action with does not have access to the Microsoft Team where you are trying to have Microsoft Teams send the message.

    Verify that you have the correct account selected under the My connections of the steps in question, example (see green box): 

     

    CopyFileThenDeleteFile.png

    If you are using the correct account, verify that you can post to the Team with that account manually. If that works, then you should re-authenticate and/or delete and re-add the Microsoft Teams connector from the Data > Connections page of Flow, example: Connections.png

    On the connections page, either Delete and re-add the Microsoft Teams connector, or click Switch account to re-enter your credentials: 

     

    Delete.png

    If you are still having issues, try logging out of Flow and back in all together. Also, try to use the Post a message as the Flow bot to a user action and send yourself a message to see if it works. 

    If you could provide an expanded screenshot of your Flow and steps, and of any detailed error messages you're receiving we could likely better assist you.

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for taking a look at my issue.  Here is a copy of the flow and the error:

     

    Post as Flow Bot.png

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

    Hi @Anonymous ,

     

    The error message says that The sender is not a member of the team, are you or the shared user triggering the flow?

     

    Please make sure the user is a member of a team.

     

    When testing this issue on my side, it is working successfully.

    1.PNG

     

    Best regards,

    Mabel

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Hi Mabel,

    How do I add Flow Bot to the team? The Flow Bot is not a user. If you look at the flow, the previous step is posting to the channel by a user (me) and it works fine.

    I have added the Flow app, ‘set up’ the bot. What else needs to be done?

    Thanks.
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous , 

     

    If you are an Owner of the team, you can go to the manage team and enable "Users can add apps to the team" option and add the Flow Bot to the team in the Apps section. Please referr to the screenshot below: 

    teass.png

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Updated status:

     

    1. Created a NEW Team

    2. Added flow bot

    3. In Flow: Team name shows in the action

    4. SUCCESSFUL post from flow bot.

     

    Issue remains with the 'old' Team.

    1. Added Flow Bot.

    2. In Flow: Team name does not show -- you have to use the team GUID

    3. FAILED to post from flow bot

    Error:

    'Unauthorized' - The sender with objectId '1881764e-e5f0-4e17-82f5-b7730c5e6e84' is not a member of the team.

     

    Is there a setting to update for this 'old' team to make it work?

     

     

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey! So you are not able to select the old team in the flow and you are adding the team ID correct? This might be because you don't have access to that team (please check if you are a member of that team and you can post a message to that channel). 

     

    Alternatively, please try deleting the current teams connection and create a new one. 

     

    Hope this helps. 

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

    Hi @Anonymous ,

     

    About how to add Flow Bot to the team, please check the following doc for a reference:

    https://flow.microsoft.com/en-us/blog/introducing-the-flow-tab-in-teams-and-new-teams-triggers/

     

    About the old teams, please make sure you are added as a member of the team.

     

    Best regards,

    Mabel

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,


    I had the same issue, and managed to find a fix. I originally created the team via the Teams Admin center and was by default an owner of the Team, could post etc, but was getting the "Not a member" error in flow. 

    I just removed myelf as an owner, then added myself back to the Team as a member, then promoted to owner again. Not sure if this will work for you, but it worked for me. I think it has something to do with the defaulting to being an owner on team creation, bypassing membership.


    Regards,

    Dan

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi

     

    I'm having the same problem. The user however is an owner of the Team, so I don't know why we keep getting this error. Anyone know a way to resolve this?

     

    Thanks!

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
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard