cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BSouthby
Level: Powered On

Post Message as flow bot - unauthorized

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?

9 REPLIES 9
Super User
Super User

Re: Post Message as flow bot - unauthorized

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!

BSouthby
Level: Powered On

Re: Post Message as flow bot - unauthorized

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

 

Post as Flow Bot.png

Community Support Team
Community Support Team

Re: Post Message as flow bot - unauthorized

Hi @BSouthby ,

 

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 Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BSouthby
Level: Powered On

Re: Post Message as flow bot - unauthorized

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.
Super User
Super User

Re: Post Message as flow bot - unauthorized

Hi @BSouthby , 

 

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!

BSouthby
Level: Powered On

Re: Post Message as flow bot - unauthorized

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?

 

 

Super User
Super User

Re: Post Message as flow bot - unauthorized

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. 

Community Support Team
Community Support Team

Re: Post Message as flow bot - unauthorized

Hi @BSouthby ,

 

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 Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Daniel_C
Level: Powered On

Re: Post Message as flow bot - unauthorized

Hi @BSouthby ,


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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 200 members 4,483 guests
Please welcome our newest community members: