Detaching a multi tenant teams bot from its application instances

Ido Moshe 40 Reputation points
2025-02-20T15:31:27.6+00:00

Hi,

I am working with a Teams recording bot - a bot that captures audio/video streams of Teams call participants (as per the teams-recording-bot-sample). It is a multi tenant service. When I onboard a new customer, the customer runs a PowerShell script which creates an application instance of my bot within the customer's tenant + a compliance recording policy, and applies the policy on users within the customer's tenant. From that point on, my bot joins every call these users take part in.

However, there's no guarantee that when this customer leaves, or disables the feature, they will take the time to delete the application instance from their tenant. Since I have no admin permissions to the customer's tenant, I cannot delete the application instance myself. Is there a way to detach my bot from the application instance without the customer's intervention?

I'd like my bot to stop receiving calls from a certain customer without having to rely on the customer.

Thank you!

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,580 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.