SharePoint's tempauth links stop working on their own in April 2027. Here's what breaks in Power Apps and Power Automate
Microsoft begins removing the built-in token from SharePoint file links on April 1, 2027. Here's how to find the custom controls, connectors and flows that depend on them, and how to move them to Entra ID tokens.
part 13 of 17 · Running enterprise platforms wellthe ideaYour app used to borrow the key from the link. From April 2027 it brings its own.
after reading, you can- Spot the custom controls, connectors and flows that still lean on SharePoint tempauth links
- Pick which token to send: Graph for Graph calls, SharePoint for the URLs Graph hands back
- Test the change safely with Get-SPOTenantPreAuthSettings and a single app ID
Some Power Apps and Power Automate builds open SharePoint files through links that carry their own password, and Microsoft starts removing those links on April 1, 2027. If you built a custom control, a custom connector or a flow that hands SharePoint download links around, find it now and move it to proper Entra ID tokens.
SharePoint is pulling the key out of its file links, and some apps will notice
When an app asks SharePoint or OneDrive for a file, SharePoint often hands back a link with a short-lived token baked into it, so anything holding the link can fetch the file without signing in. Microsoft calls these pre-authenticated or tempauth URLs. From April 1, 2027 Microsoft begins removing that built-in token, and whoever opens these links has to show a valid Microsoft Entra ID token. Apps built only from standard Power Platform controls and connectors don't need changes, as long as nobody passes these links around. Custom pieces that do will need work.
It's like a hotel that stops printing the room number on a paper key you can lend to anyone. From now on the door only opens for a guest who shows ID at the desk. The room is the same and so is the guest. What's gone is the bit of paper that worked for whoever held it.
- Teams with custom Power Apps code components
- Makers of custom connectors to SharePoint
- Flows that download files by link
- Anyone using Word Online's create action
- SharePoint and Entra ID administrators
- ISVs shipping apps that call Graph file APIs
Why a quiet link change can break a working app
Nothing announces the break. The day the behavior changes, a gallery of product photos shows empty boxes, a document library's thumbnails stop loading, or a flow that emails a generated contract sends a link people outside the account may not be able to open. Microsoft's Message Center post names those exact symptoms: thumbnails that don't load and SharePoint images in an Image control that don't load.
The apps that break are usually the ones nobody remembers building. A code component someone wrote three years ago, a custom connectordefinitionA connector you build yourself so Power Apps and Power Automate can call an API. You pick how it signs in, and that's where most of this fix happens. a contractor set up, a flow that grabs a download link and passes it to another system. They worked because the link was the credential. Once the link isn't, they get an authentication error and the user just sees a blank.
There's a security reason for the change, and it's a fair one. Microsoft's developer post puts it plainly: URLs get logged, cached, forwarded and stored in ways that tokens in a header don't. A tempauthdefinitionA short-lived token SharePoint puts inside a file URL so the link works without signing in. Microsoft also calls these pre-authenticated URLs. link pasted into a ticket or an email works for anyone who has it until it expires. Graph's own documentation says those download links can expire within minutes, so the risk window is short, but it's still a password sitting in a URL.
-
01 App asks Graph for a file
Your app or flow calls a Microsoft Graph file API with the Graph token it already has.
-
02 Today: a link with a token in it
Graph returns a SharePoint link carrying tempauth, or redirects to one with an HTTP 302. Anything can open it without signing in.
-
03 From April 1, 2027: a plain link
The redirect is gone and content comes back directly. Links in the response body no longer carry a token.
-
04 Caller shows a token
Whatever opens the link sends an Authorization header with an Entra ID token for SharePoint or for Graph.
-
05 Old code gets an error
A control, connector or flow that still opens the link without a header gets turned away. Users just see a blank image or a failed run.
For engineers, Microsoft splits the affected APIs into two patterns. Some return a 302 redirect to a pre-authenticated URL, and after the change they return the content directly instead. Others put a pre-authenticated URL in the response body, and after the change that URL needs a SharePoint token in the Authorization header. Code that turns off auto-redirect, reads the Location header, or stores the URL for later is the code that breaks.
What Microsoft is changing, API by API
Six Graph file APIs change. Here's what happens to each
No more 302 to a pre-authenticated download URL. Graph returns the file content directly to the caller.
After the change the uploadUrl is a plain SharePoint URL, and every chunk you PUT needs a SharePoint token. Today's docs warn against sending one, so gate the header and test it.
The monitor URL loses its token. Your polling code has to authenticate to SharePoint on every check.
The getUrl looks the same but now needs a SharePoint token. The call and response shape don't change.
You get the thumbnail back in one request with your Graph token. There's no redirect left to follow, so code that expects one may fail.
Ask for a PDF and the converted file comes straight back, no redirect. Microsoft hedges this one with 'subject to API availability', so test it.
A SharePoint admin can opt named third-party apps in, and those apps get Graph URLs back. They open them with the Graph token they already have, so no second token.
Microsoft says not to rely on the action's returned URL as an anonymous download. The connector docs add that opening it may require signing in.
Power Platform makers mostly feel this through four doors. Code componentsdefinitionCustom controls you build with the Power Apps component framework. It's your own code running in the app, so it's also your code that decides how files and images get fetched., the custom controls you build with the Power Apps component framework, often fetch images or files by URL. Custom connectors can wrap Graph calls and pass the returned link along. Flows sometimes take a download URL from one step and fetch it with a plain HTTP action that sends no Authorization header. And the Word Online (Business) connector's create action returns a document link that people have been mailing out.
That last one catches people. The action writes the new document to the root of the connected user's OneDrive and returns a URL. Microsoft's Message Center notice says that URL currently works without extra authentication, and after the change customers shouldn't use it as an unauthenticated download. If a flow emails that link to a customer or drops it into a ticket, the person clicking it may have to sign in with an account that has permission to the file.
| What your build does | Breaks after the change? | What to change |
|---|---|---|
| Standard controls and connectors only, no SharePoint links passed around | No | Nothing, per Microsoft's Message Center post |
| Code component loads SharePoint images or thumbnails by URL | Likely | Call with an Entra ID token, or have the server side fetch content |
| Custom connector returns Graph download or upload URLs | Yes | Add SharePoint token acquisition and permissions to the app registration |
| Flow fetches a returned link with an HTTP action and no header | Yes | Use the connector's file content action, or send a token |
| Flow emails the Word Online create action's URL | Likely, for readers outside the account | Send the file as an attachment or share it properly |
| Third-party app calls Graph and stores links for later | Yes | Stop persisting links; redeem them at request time with a token |
Two ways forward, and most apps need both
Path A is the one that works everywhere. Where Graph hands back a SharePoint URL, your app gets a second Entra ID token with the SharePoint host as its audience and sends it in the header. Use delegated tokens when a user started the action and app-only tokensdefinitionTokens an application gets for itself, with no user signed in. Background jobs use them; user actions use delegated tokens instead. for background jobs. The app registration needs the Graph file permissions plus the matching SharePoint permissions. Depending on which permissions they are, an admin may need to consent.
Path B saves the second token where Microsoft offers a Graph alternative. A SharePoint administrator adds the app's ID to the Graph URL setting, and responses come back with Graph URLs that the existing Graph token can open. It applies only when the request came through Graph. If you call SharePoint's own APIs directly, the setting does nothing for you.
| You're calling | Token audience | Typical permission |
|---|---|---|
| Microsoft Graph file APIs | https://graph.microsoft.com | Files.Read or Files.ReadWrite |
| SharePoint URLs returned by Graph | https://{tenant}.sharepoint.com | The matching SharePoint permission |
| Graph URLs via the tenant setting | https://graph.microsoft.com | Same Graph token you already hold |
| driveItem contentStream | https://graph.microsoft.com | No change expected |
Microsoft's post says to prefer driveItem contentStream where you can, because it already returns content with no redirect and no tempauth. There's a catch the post skips. The contentStream reference sits under the beta endpoint, and Microsoft's beta docs say beta APIs are subject to change and not supported in production apps. A developer commenting on Microsoft's post raised exactly that and asked when it moves to v1.0. We'd keep it out of production code until it does.
The same commenter tried the opt-in on a test tenant. They say the thumbnail API still sent back a 302 to a media service URL, and that URL refused the original Graph token with a 401. That's one person's report, not a confirmed bug. Still, we'd test thumbnails early because of it.
The commenter also builds a desktop app that other companies install, and noted that many of their business customers take months to roll out an update. If you sell software like that, get the fixed version out well before April. Customers who are slow to install it will hit the break first.
Dates to plan around
- Oct 8, 2026Microsoft's migration post
Microsoft's SharePoint team posts the migration guide. If you write code against Graph file APIs, start there.
- Nov 13, 2026Message Center MC1551122
Admins get the Power Platform notice. It names thumbnails, Image control loads and the Word Online link as things that may break.
- Now to Q1 2027Inventory and fix
Use these months to find the custom pieces, fix them and test them. Leave room for vendors who'll ship late.
- Apr 1, 2027Removal begins
The 302 redirects stop and SharePoint URLs in responses lose their tempauth token. Anything you didn't fix can start failing from here.
- A code component still loads gallery images from links that carry their own token
- A flow still mails out the Word document link, and customers outside the team may hit a sign-in page
- Nobody knows which app IDs Graph opted in, or why
- Nobody notices until a user opens a ticket about blank images in April
- Someone rewrote the component so it sends a token when it fetches an image
- The flow attaches the file, or shares it with the named people who actually need it
- Someone saved the Get-SPOTenantPreAuthSettings output and actually read it
- Each fixed app was republished and tested against a test tenant first
What to do now, by role
Who does what before April
- Ask IT for a list of custom Power Apps controls, custom connectors and flows that touch SharePoint files.
- Name one owner per app who signs off the retest before April.
- If a bought app reads your SharePoint files, ask the vendor which version fixes this and when you'll get it. Put the answer in writing.
- Search code components and custom connectors for tempauth, downloadUrl, uploadUrl or getUrl. Each hit is a place that may break.
- Find flows where an HTTP action fetches a link from an earlier SharePoint or Graph step with no Authorization header.
- Stop emailing Word Online links. Attach the file or share it with named people instead.
- Republish fixed apps, then save and publish fixed flows, and confirm they're turned on.
- Run Get-SPOTenantPreAuthSettings | ConvertTo-Json and save the output with the date.
- List app registrations that hold Graph file permissions and check each one also has the SharePoint permission it'll need.
- Opt one app into the Graph URL setting in a test tenant, never the whole tenant first.
- Watch sign-in logs for failures from those app IDs after each change.
- Add SharePoint token acquisition next to your Graph token code. Today's upload docs warn against an Authorization header on PUTs, so gate it and test.
- Stop disabling auto-redirect and stop reading the Location header on these calls.
- Never store, queue or forward returned links; fetch them when needed with a token.
- Publish your minimum fixed version to customers early, because their rollouts take months.
# example only. Changing these needs the SharePoint Administrator role Get-SPOTenantPreAuthSettings | ConvertTo-Json # test tenant only: send Graph URLs to one app first Set-SPOTenantPreAuthSettings -UseGraphUrlIsEnabled $true -UseGraphUrlAppsList "<app-id>" # roll back Set-SPOTenantPreAuthSettings -UseGraphUrlIsEnabled $false # turns the Graph URL setting back off
Make the fix stick
The order we'd work in
- 01Inventory the callers
List every app, connector, code component and flow that touches the six Graph file API families. Include vendor apps, since they show up in Entra ID as enterprise applications with file permissions.
- 02Read the current settings
Save the Get-SPOTenantPreAuthSettings output. Deny beats Allow, and Allow beats IsDisabled, so an app on both lists gets nothing.
- 03Fix the token handling
Add the SharePoint audience where Graph hands back SharePoint URLs. Keep tokens cached the normal OAuth way, and stop treating links as something you can save.
- 04Rehearse in a test tenant
Microsoft recommends testing every pre-auth change in a test tenant. Opt in one app ID, or switch off single features like Thumbnail or Download, and see what breaks.
- 05Republish and retest
Publish the fixed apps and save and publish the flows. Confirm each one is turned on and passes a real test with a normal user account.
- 06Watch after April 1
Keep an eye on sign-in failures and flow run history for the first weeks. A blank image in a gallery is often the only symptom anyone reports.
The identity work is the part people underestimate. Each fixed custom connector or background job ends up holding two token audiences, and someone has to own the app registration behind it. If a connector still runs on a client secret, the fix is a good time to look at managed identity, which Microsoft's custom connector docs now support for Entra user-delegated auth on single-tenant app registrations. That removes a secret someone would otherwise have to rotate.
Before: the link is the credential
Graph hands back a link with the token baked in. The control or flow opens it with no header, and so does anyone the link gets forwarded to.
After: every request shows a token
The app registration carries both Graph and SharePoint permissions. Every request sends a token, so a forwarded link won't open for someone who hasn't signed in.
If something breaks after the change
If something fails after April 1, this is the order we'd check
Most failures will look like a blank image, a 401 or 403, or a flow that suddenly fails at a download step. Start by finding which app ID made the call.
- 01Find the callerfirst hour
- Check the flow run history or the app's monitor session for the failing step and the URL it called.
- Look in Entra ID sign-in logs for the app ID, and note whether it's your own registration or a vendor's.
- Ask the SharePoint admin which pre-auth features that app ID is allowed today.
- 02Get users workingsame day
- Where a flow emailed links, switch it to send the file as an attachment until the fix ships.
- If it's a vendor's app, ask them for the fixed version and a date. Until then, users may need a workaround.
- Don't widen allow lists for every app to make the error go away; Deny still wins anyway.
- 03Fix the codethis week
- Add the SharePoint token for links Graph returns, or opt the app into Graph URLs where Microsoft offers one.
- Remove any logic that expects a 302 and reads the Location header.
- Republish the app, or save and publish the flow. Then check it's actually turned on, because people forget.
- 04Check for exposed linksthis week
- Look through the tickets, chats and mailboxes your flows wrote to. Old tempauth links may still be sitting there.
- They expire fast, so treat this as clean-up, and change any flow that stored them so it stops.
- 05Learn from itnext month
- Add token handling to code review for every new connector or code component. It's cheaper to catch there.
- Keep the inventory alive so the next platform change starts from a list, not a hunt.
Three illustrative situations
- the setup
- A canvas app uses a code component to show inspection photos stored in a SharePoint library. The component loads each photo from the link Graph returns.
- what happens
- Once the links stop carrying tempauth, the component gets a 401 for every image. Inspectors open the app on site and see empty tiles.
- what to do
- Update the component to request content with an Entra ID token, or serve the images through a connector that authenticates, then republish and test on a phone.
- the setup
- Sales ops runs a flow that creates a contract with Word Online's Create a Microsoft Word document action. It then emails the link it got back to the customer for review.
- what happens
- After the change, Microsoft says not to rely on that link as an anonymous download. Customers who click it may hit a sign-in page and reply asking where the contract is.
- what to do
- Send the document as an attachment or a PDF, or share it with named external users under your sharing policy. Don't count on the returned URL staying anonymous.
- the setup
- A software vendor's multi-tenant app uploads files to customers' SharePoint through Graph upload sessions and stores the uploadUrl to resume later.
- what happens
- The uploadUrl no longer carries a token, so resumed uploads fail. Customers on long update cycles are still running the old build in April.
- what to do
- Add SharePoint token acquisition and the matching permission, stop saving upload URLs, and get the fixed build to customers months ahead with a clear minimum version.
How Cohash helps
We build the inventory from both sides: the Power Platform estate, and the Entra ID app registrations that hold Graph file permissions. Then we fix the token handling in code components and custom connectors, rehearse the change in a test tenant and republish. See our Power Platform page, the engineers who do this work, our Microsoft Entra ID page, or start with an assessment.
What to take from this
- 01
From April 1, 2027 Microsoft begins taking the token out of SharePoint and OneDrive links from Graph. Whoever opens them needs an Entra ID token.
- 02
Apps built from standard controls and connectors are fine, as long as they don't pass SharePoint links around. Custom controls, connectors and flows that do aren't.
- 03
Microsoft says not to rely on the Word Online create action's link as an anonymous download. Stop emailing it.
- 04
Most fixed apps hold two tokens: Graph, plus SharePoint for the URLs Graph returns.
- 05
Test in a test tenant with one app ID at a time, and save the pre-auth settings before you change anything.
- 06
If you ship software to other companies, get the fixed version out months early.
01Will the SharePoint tempauth retirement break my Power App?
Only if it uses something custom that relies on links carrying their own token: a code component, a custom connector, or a flow that passes SharePoint download links along. Apps built only from standard controls and connectors don't need changes, according to Microsoft.
02What is a tempauth URL?
It's a SharePoint or OneDrive file link with a short-lived token in the tempauth query parameter, so whoever has the link can open the file without signing in. Graph's docs say these download links can expire within minutes.
03When do pre-authenticated SharePoint links stop working?
Microsoft says removal starts on April 1, 2027. That's when the affected Graph APIs stop sending 302 redirects to pre-authenticated URLs, and SharePoint URLs in responses lose their tempauth token. Anything still depending on them can start failing from then.
04Does the Word Online (Business) connector still work?
Yes, the connector keeps working. What changes is the link the Create a Microsoft Word document with the given content action returns. Don't use it as an anonymous download link, because opening it may require signing in with an account that has access to the file.
05Do I need a second token?
Usually, yes. Keep your Graph token for Graph calls and get a SharePoint token, with your tenant's SharePoint host as the audience, for the SharePoint URLs Graph returns. Where Microsoft offers a Graph URL and an admin opts your app in, the Graph token alone will do.
06Can we just switch the Graph URL setting on for every app?
An empty app list does apply it to all third-party apps, but Microsoft says to use that only after you've assessed the tenant. Start with one app ID in a test tenant, watch sign-in failures, then widen it.
07Who can change the pre-authentication settings?
You need the SharePoint Administrator role to run Set-SPOTenantPreAuthSettings. Microsoft strongly recommends testing every change in a test tenant, because these settings can switch off features in production.
Three questions, about a minute
Pick an answer and we'll tell you if it's right, and why it is or isn't. The score stays in this browser.
-
Q1A canvas app uses only the standard Image control and the SharePoint connector, and nobody passes SharePoint links around. What does it need?
show the answer
B. Nothing, according to Microsoft's notice Microsoft's notice says apps that use only native controls, actions and connectors don't need to do anything, as long as nobody's passing pre-authenticated SharePoint URLs around.
-
Q2Your custom connector gets an uploadUrl from Graph and then PUTs file chunks to it. What changes?
show the answer
C. Every chunk now needs a SharePoint token sent in the Authorization header After the change the uploadUrl is a plain SharePoint URL, so every chunk needs an Entra ID token whose audience is the SharePoint host.
-
Q3An admin wants to opt apps into Graph URLs. What's the safer first move?
show the answer
D. Enable it for one app ID in a test tenant and watch sign-ins An empty list switches it on for every third-party app at once. Microsoft wants each pre-auth change tried in a test tenant first, so start with one app ID and watch.