The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Thank you for providing such a detailed explanation of your current architecture and the requirements for your download workflow. I'd like to address your questions individually and share a few additional points that may help you evaluate your migration options.
1.Is there a supported way for the browser to download files directly from SharePoint or OneDrive without passing the file content through your server after April 1, 2027?
Based on the currently available Microsoft documentation, I could not find a supported replacement that allows an unauthenticated browser to download file content directly in the same manner as the retiring pre-authenticated URL mechanism.
Microsoft's migration guidance also mentions driveItem/contentStream as an API that already returns content directly without relying on pre-authenticated URLs or redirects. However, you should verify its current support and availability status before adopting it in production.
2.Can the server generate a short-lived, per-file URL that the browser can use without an Authorization header? Is createLink the intended replacement?
I could not find documentation confirming that an app-only access token can be exchanged for a short-lived, per-file download URL that the browser can access anonymously.
Regarding createLink, this API creates a sharing link rather than a replacement specifically designed for the retiring pre-authenticated download URLs.
The availability and behavior of the generated link depend on the link type, the application's permissions, and the sharing policies configured by each customer tenant. For example, anonymous sharing links are subject to the tenant's external sharing settings and applicable link expiration policies.
Therefore, although createLink may be worth evaluating for scenarios where sharing links are suitable, I would not assume that it provides the same behavior as the existing pre-authenticated download URL mechanism.
3.If browser authentication is required, what supported approach is available, particularly regarding CORS?
Obtaining a delegated access token with MSAL.js does not, by itself, guarantee that a browser can download file content directly.
For URLs returned in response bodies, Microsoft states that they will no longer carry tempauth. Accessing these URLs requires a valid Microsoft Entra ID access token in the Authorization header. The token audience must match the URL being accessed, whether it belongs to Microsoft Graph or SharePoint Online.
One related option worth considering is the Microsoft Graph URL opt-in setting. SharePoint administrators can configure UseGraphUrl so that specific third-party applications receive Microsoft Graph URLs instead of SharePoint URLs for supported API scenarios.
For example:
Set-SPOTenantPreAuthSettings -UseGraphUrlIsEnabled $true -UseGraphUrlAppsList "<app-id>"
This allows your application to use its existing Microsoft Graph access token when accessing supported Graph URLs. However, it does not apply to every API. For scenarios without a Graph URL alternative, a SharePoint Online access token is still required.
This is a tenant-level setting, so the administrator of each customer tenant would need to enable it. Also, this setting does not eliminate authentication requirements or provide an anonymous download link for the browser.
Regarding your CORS issue, I could not find documentation confirming a CORS-supported pattern for browser requests using the new direct-content response. I therefore recommend testing the browser authentication and CORS behavior in a development tenant before relying on this approach in your production architecture.
4.Can the server provide the browser with a limited-scope token for a single file instead of exposing a broadly privileged app-only token?
Regarding your concern about exposing a broadly privileged token, Microsoft Graph supports Files.SelectedOperations.Selected, which allows an application to access explicitly assigned files or folders rather than having unrestricted access to all files.
This requires admin consent, an explicit permission assignment on the target resource, and an access token containing the appropriate Selected permission.
This is a resource-level permission model supported in both application and delegated modes. However, it is not a mechanism for generating a temporary single-file browser download token.
Also, assigning permissions at the file or folder level breaks permission inheritance, which should be considered when designing your solution.
Since your application currently has Files.ReadWrite.All and Sites.ReadWrite.All, simply adding Files.SelectedOperations.Selected would not restrict the application's existing broad access. If your goal is to limit access to explicitly assigned files, you would also need to review and remove any broader permissions that are no longer required, then configure the appropriate resource-level permission assignments.
Reference: Overview of Selected Permissions in OneDrive and SharePoint - Microsoft Graph | Microsoft Learn
5.Will GET /drives/{driveId}/items/{itemId}/content still return a 302 redirect after April 1, 2027? If so, where will it redirect?
According to Microsoft's announcement and the Set-SPOTenantPreAuthSettings (Microsoft.Online.SharePoint.PowerShell) | Microsoft Learn, this endpoint will no longer return an HTTP 302 redirect to a pre-authenticated download URL. Instead, the file content will be returned directly in the response to the original authenticated Microsoft Graph request.
This behavior will begin rolling out on April 1, 2027, as part of the retirement of pre-authenticated URLs.
6.What throttling or egress limits should be considered for concurrent downloads across multiple tenants?
For your multi-tenant application, Microsoft's current SharePoint Online documentation lists the following default limits:
-Downloading a drive item: 1 resource unit per request.
-Application egress: 400 GB per hour per application per tenant.
-Specific sharing APIs: 300 requests per five minutes per application per tenant.
-Anonymous download egress: 100 GB per two hours per site.
For multitenant applications, resource consumption is measured separately for each application-tenant pair, so reaching a limit in one tenant does not directly affect the application's usage limits in other tenants.
Resource unit limits also apply per application per tenant, per minute and per 24 hours, and scale with the tenant's license count. Since each download consumes 1 resource unit, these limits affect the rate at which your application can process download requests.
The 100 GB per two hours anonymous egress limit applies specifically to anonymous downloads, such as downloads through anonymous sharing links, and should not be confused with the 400 GB per hour application egress limit.
Microsoft recommends reducing concurrent requests, avoiding request spikes, and honoring the Retry-After header when receiving HTTP 429 or 503 responses.
Reference: Avoid getting throttled or blocked in SharePoint Online | Microsoft Learn
Please understand that this is a user-to-user community forum. As an Independent Advisor, I cannot access Microsoft's internal systems or product engineering resources, so I can only share information based on publicly available documentation.
Because you are looking for confirmation of the supported browser-based download approach after the retirement of pre-authenticated URLs, particularly regarding the /content API behavior, authentication requirements, and CORS support, I would recommend raising a Microsoft Unified Support ticket. This would allow your questions to be reviewed by the appropriate SharePoint Online or Microsoft Graph product specialists.
Please note that this is a paid support channel, which requires an active support plan or an eligible support agreement. However, the benefit of using this channel is that your inquiry can be handled through Microsoft's technical support process and, where appropriate, reviewed by the relevant product engineering team. They are better positioned to provide authoritative clarification on complex implementation scenarios that may not yet be fully covered by publicly available documentation.
You can refer to this guide Open a new Support request - Microsoft Engage Center | Microsoft Learn