-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
- 💥 Internet Explorer
- 💥 Microsoft Edge
- 💥 Google Chrome
- 💥 FireFox
- 💥 Safari
- mobile (iOS/iPadOS)
- mobile (Android)
- not applicable
- other (enter in the "Additional environment details" area below)
Additional environment details
No response
Issue description
We’ve developed a multi-tenant SharePoint Framework (SPFx) app that includes a File Handler component and supports Azure AD Multiple Organizations.
The app is successfully visible in My Apps of a secondary (QA) tenant, but users from that tenant cannot access or use the app when visiting a SharePoint site hosted on our primary dev tenant.
When a QA user opens a SharePoint site on the dev tenant, the app is not shown in the site’s “Add App” list or as a file handler. In the browser’s network tab, we see this failing API call when we click on the file(initiate file handler):
GET https://.sharepoint.com/_api/v2.0/drive/apps?select=*,promoted,builtIn&$expand=actions
→ Response: { "error": { "code": "accessDenied", "message": "Access denied" } }
Current Setup:
Primary (Dev) tenant: Hosts the SPFx package and app deployment.
Secondary (QA) tenant: Connected via Multi-Tenant Organization (MTO) sync.
MTO Configuration: Users are synced as members (not guests) using MTO.
All relevant inbound and outbound sharing permissions are configured and allowed.
The synced QA users appear as member users in the dev tenant with UPN as firstname.lastname
App Consent & Visibility:
The QA tenant admin ran the consent URL:
https://login.microsoftonline.com/{tenant-id}/oauth2/authorize?client_id={client-id}&state={state}&redirect_uri={redirect-uri}
The app appeared under Enterprise Applications in the QA tenant and was assigned to all QA users.
QA users can see the app in myapps.microsoft.com, confirming successful multi-tenant registration.
However:
When QA users access a SharePoint site on the dev tenant, the app does not appear, and _api/v2.0/drive/apps returns AccessDenied in network tab.
SPFx Solution Details
skipFeatureDeployment: true
includeClientSideAssets: false
isDomainIsolated: false
Sign-in Audience: AzureADMultipleOrgs
Redirect URIs: Configured for https://.../login/postAuth and a test redirect.
File Handlers: Configured for multiple file extensions (.docx, .xlsx, .pptx, etc.)
Hosting endpoint: https:///secloreo365service/openfile
What We’ve Tried
Verified MTO user sync → users appear as members in the dev tenant.
Granted all necessary permissions (both inbound and outbound) in the MTO setup.
Confirmed app consent via QA tenant admin → app appears under Enterprise Apps and MyApps.microsoft.com.
Confirmed that the SPFx app is deployed correctly and works for dev tenant users.
Despite all this, the app does not show up for synced QA users on dev tenant sites, and _api/v2.0/drive/apps fails with AccessDenied.
Additional Details
App registration configured as multi-tenant (signInAudience = AzureADMultipleOrgs).
Permissions granted to Microsoft Graph and SharePoint Online.
Users appear as MTO-synced members with correct permissions.
_api/v2.0/drive/apps works fine for dev tenant users, but not for synced users from QA tenant.
We have created a site on dev tenant and added the synced QA user as member of the site and then accessed the site using the QA user and trying to open the file using custom file handler
Request for Microsoft Guidance
We’d like Microsoft’s help to understand and resolve this issue.
Specifically:
Are there any additional Graph/SharePoint permissions or consent requirements for cross-tenant member users (synced via MTO) to access the SPFx app and file handlers?
Should the File Handler definitions be registered in the secondary tenant, or are they expected to propagate automatically once the app is consented and synced?
Does the _api/v2.0/drive/apps AccessDenied response indicate a SharePoint API limitation for cross-tenant users, or is it a configuration gap?
If this scenario (multi-tenant SPFx + File Handler + MTO) requires special setup, could Microsoft share the recommended architecture or deployment flow?
If newer documentation or guidance exists for multi-tenant SPFx app deployment with MTO integration, please share the latest steps or references.
Questions for Microsoft
Are MTO-synced users expected to have access to the Drive Apps API and SPFx-based file handlers across tenants?
Is there a known limitation or workaround for enabling cross-tenant SPFx app discovery in SharePoint Online sites?
Do we need to redeploy the SPFX App in QA tenant as well for this to work?