Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Thank you for posting your question in the Microsoft Q&A forum.
You've encountered the following error: AclCheckFailed – The initiator 28:app <your-app-id> is not a member of the roster in the generic thread. This happens because removing a member requires the initiator to be a participant in the chat roster. Apps are never considered roster members, even if they are installed in the chat. Application permissions alone do not grant roster membership, so the ACL check blocks the removal.
Here’s why each of the three approaches fails:
1.Creating a chat (with or without installed apps)
The Create chat API can define members and optionally install an app. Installing an app does not make it a roster participant. The app cannot remove members because the ACL check requires the initiator to be in the roster.
2.Relying on app permissions alone
Even with permissions like Chat.Manage.Chat or ChatMember.ReadWrite.All, the app is not treated as a chat member. Permissions allow the app to act within its scope, but they don’t override roster rules. Since the app isn’t in the roster, the ACL check still denies the removal.
3.Installing the app after the chat is created
Installing the app later gives it permissions to interact with the chat. However, it still isn’t a roster member, so ACL checks for member removal continue to fail.
All three approaches fail because Teams apps are not roster participants. The Remove member action requires the initiator to be in the roster. Apps can be installed, granted permissions, and interact with the chat, but they will never count as roster members. As a result, any attempt to remove a member directly from the app will always be blocked by ACL checks.
I hope this information is helpful.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.