Share via

Foundry Agent published to Teams via Group chat

Nimesh 60 Reputation points
2026-04-29T03:53:59.5033333+00:00

HI Everyone,

I created a Foundry agent with an Azure AI Search knowledge base linked via Foundry IQ. Then I published it to Teams group chat after creating a Bot service. When I prompt this agent, I keep receiving the approval for tool usage prompt each and every time.

Is this the default behavior or is there way to approve this tool only once in group chat other than publishing it to Teams Store?

approval 2

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform


1 answer

Sort by: Most helpful
  1. SRILAKSHMI C 18,035 Reputation points Microsoft External Staff Moderator
    2026-04-29T10:32:32.4766667+00:00

    Hello Nimesh,

    What you are seeing is expected behavior when an Azure AI Foundry agent is published to Microsoft Teams and uses external tools such as Azure AI Search through Foundry Knowledge.

    Each time the agent invokes the knowledge_base_retrieve tool, Teams displays a Tool Approval Request card to ensure that users explicitly consent to the agent accessing external data on their behalf. This is a built-in security and compliance feature designed to provide transparency and user control over tool execution.

    Why You See Repeated Approval Prompts

    • Your agent is invoking an external tool (Azure AI Search knowledge retrieval).
    • In Microsoft Teams, external tool calls require user consent.
    • When the app is side-loaded or used in a Teams chat, this approval is enforced at runtime.

    In group chat scenarios, approval prompts are commonly displayed for tool usage to ensure all participants are aware of the agent's access to external resources.

    Is This the Default Behavior?

    Yes, this is currently the expected behavior for Foundry agents using tools in Teams, particularly when the app has been side-loaded rather than fully published.

    Can Approval Be Granted Only Once?

    At present, there is no setting that allows approval to persist across all future group chat threads for side-loaded apps.

    However, the exact behavior depends on the permission mode configured when the agent was created.

    Reader Mode

    • Every elevated action or tool call requires approval.
    • Users may see approval prompts repeatedly during the conversation.

    Privileged Mode

    • Approval is requested once at the start of a conversation thread.
    • Subsequent tool calls within the same thread typically do not require additional approval.
    • A new conversation thread will trigger a new approval request.

    The permission mode cannot be changed after the agent is created. If your current agent was created in Reader mode, you would need to redeploy it in Privileged mode to benefit from reduced prompting.

    How to Eliminate Repeated Approval Prompts

    The most effective way to avoid recurring approval prompts is to formally publish the Teams app:

    • Publish the app to your organization's Teams app catalog via the Microsoft 365 Admin Center, or
    • Publish it to the Microsoft Teams Store

    Once published, a Teams administrator can grant tenant-wide consent and pre-approve the required permissions. This allows end users to interact with the agent without receiving approval prompts for each tool invocation.

    Recommended Options

    You have two primary options:

    Redeploy the agent in Privileged mode

    • Reduces prompts to one approval per conversation thread.

    Publish the Teams app to your organization’s app catalog or the Teams Store

    • Allows tenant administrators to pre-approve permissions.
    • Provides the smoothest end-user experience by eliminating repeated approval prompts.

    Please refer this

    Chat feature & permission levels (Reader vs Privileged mode): https://learn.microsoft.com/azure/sre-agent/usage#chat-with-your-agent

    Publish agents to Microsoft 365 and Teams (org catalog or Store publishing): https://learn.microsoft.com/azure/foundry/agents/how-to/publish-copilot#publish-to-microsoft-365-and-teams

    I Hope this helps. Do let me know if you have any further queries.


    If this answers your query, please do click Accept Answer and Yes for was this answer helpful.

    Thank you!


Your answer

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