Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Hi @Jef Aldrich
Thank you for reaching out.
First, I’d like to clarify that this is a user‑to‑user support forum. Moderators participating here do not have access to backend systems, nor can we directly intervene in Microsoft product functionality. Our role is limited to providing technical guidance and sharing best‑practice recommendations based on reported issues, requests, and scenarios.
From your description, it sounds like you want the Teams chatbot to query external systems (such as Jira and Confluence) on behalf of the individual end-user. This ensures the returned data respects that user’s specific permissions, rather than using a shared service account with broader privileges.
Based on my research, you could consider to use Single Sign-On (SSO) combined with the On-Behalf-Of (OBO) flow with Microsoft Entra ID. This is the standard and secure pattern for Microsoft 365 Agents SDK (Python) to propagate the user’s identity and permissions from Teams through your bot to the backend and third-party systems.
This approach brings several important benefits, such as: It ensures the bot only returns data the current user is allowed to see, improves overall security and compliance by following the principle of least privilege, provides a seamless experience for users with no additional logins required, and is fully supported by the Microsoft identity platform making it scalable and easier to maintain. It also offers better auditability since actions are performed under the real user identity. The solution works especially well with Azure-integrated OAuth applications, and can be combined with Atlassian’s Entra ID integration for Jira Cloud and Confluence Cloud.
You can refer more via:
Microsoft identity platform and OAuth2.0 On-Behalf-Of flow - Microsoft identity platform | Microsof…
Test agents using the Microsoft Agent 365 SDK | Microsoft Learn
OAuth 2.0 Bot Authentication with Azure - Teams | Microsoft Learn
Configure Atlassian Cloud for Single sign-on with Microsoft Entra ID - Microsoft Entra ID | Microso…
Please note that this summary is based on my own findings and may not fully address your concerns. To help you reach your goal more effectively, I recommend engaging with [GitHub Community Forum] for a deeper technical dive or to connect with individuals who have relevant experience and expertise. Some approaches may behave differently or be restricted depending on your specific environment and configuration. These forums include many experienced developers and Microsoft specialists who can assist with troubleshooting and guidance.
I hope this helps.
Please feel free to correct me if I misunderstood your request. If you have any additional concerns, feel free to comment below. I would be more than happy to assist.
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.