Forum Discussion
How to Upload Files Using Office 365 Agents SDK Across Multiple Tenants
I'm currently working with the Office 365 Agents SDK and looking to implement a file upload feature that can work across multiple Microsoft 365 tenants.
Specifically, I'm trying to understand:
What is the recommended approach to upload files using the Agents SDK?
How can this be done in a multi-tenant scenario, where files need to be uploaded for users across different organizations?
Are there any authentication or permission considerations I need to keep in mind?
If anyone has experience or sample code to share, it would be greatly appreciated!
4 Replies
- Sayali-MSFT
Microsoft
Hello @chetanoptimus, Thank you for reaching out!
Use Microsoft Graph for file uploads, ensure your app is multi-tenant, handle user consent, and use delegated permissions for user uploads. The Agents SDK helps with context and authentication, but file upload is via Graph API.
Reference Document-
1.Upload small files - Microsoft Graph v1.0 | Microsoft Learn- Sayali-MSFT
Microsoft
Hello @chetanoptimus, Could you please confirm if your issue has resolved with provided suggestions or still looking for any help?
- chetanoptimusCopper Contributor
Hi, thank you for sharing the references.
I am still unclear on how this would work in practice since multi-tenant bots have been deprecated as of July 31, 2025. In that scenario, I am not sure how external tenant users would be able to authenticate and then upload files through the Agents SDK. Could you clarify what the recommended approach is for enabling cross-tenant file uploads now that multi-tenant registration is no longer supported?