EngineeringPower Platform

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.

Cohash Enterprise Platforms Practice November 2026 12 min read 7 chapters 3-question check
part 13 of 17 · Running enterprise platforms well
BEFORE APR 1, 2027 Token inside the URL 302 to a tempauthlink Anyone with link canopen FROM APR 1, 2027 Plain URL, no token Content returneddirectly Entra ID token inheader

the 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.

in plain wordsStarts April 1, 2027

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.

think of it like this

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.

who should care
  • 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
chapter 01

Why a quiet link change can break a working app

Apr 1, 2027SharePoint and OneDrive begin removing pre-authenticated URLs
6Microsoft Graph file API families Microsoft lists as affected
2 tokensWhat most fixed apps end up holding: one for Graph, one for SharePoint
11Pre-auth features SharePoint admins can already switch off one by one

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.

what changesFollow one file request and you'll see where old code tripsThe file and the permissions stay the same. What moves is where the proof of identity travels: out of the link and into the request header.
  1. 01 App asks Graph for a file

    Your app or flow calls a Microsoft Graph file API with the Graph token it already has.

  2. 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.

  3. 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.

  4. 04 Caller shows a token

    Whatever opens the link sends an Authorization header with an Entra ID token for SharePoint or for Graph.

  5. 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.

chapter 02

What Microsoft is changing, API by API

Six Graph file APIs change. Here's what happens to each

changedDownload a file (/content)

No more 302 to a pre-authenticated download URL. Graph returns the file content directly to the caller.

changedCreate upload session

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.

changedCopy and monitor (long-running actions)

The monitor URL loses its token. Your polling code has to authenticate to SharePoint on every check.

changedPreview

The getUrl looks the same but now needs a SharePoint token. The call and response shape don't change.

changedThumbnails

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.

changedConvert to other formats

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.

newGraph URL tenant setting

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.

deprecatedWord Online CreateWordFileWithContent link

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.

tableLook for your build in the left column. If it breaks, the right column tells you what to change.
What your build doesBreaks after the change?What to change
Standard controls and connectors only, no SharePoint links passed aroundNoNothing, per Microsoft's Message Center post
Code component loads SharePoint images or thumbnails by URLLikelyCall with an Entra ID token, or have the server side fetch content
Custom connector returns Graph download or upload URLsYesAdd SharePoint token acquisition and permissions to the app registration
Flow fetches a returned link with an HTTP action and no headerYesUse the connector's file content action, or send a token
Flow emails the Word Online create action's URLLikely, for readers outside the accountSend the file as an attachment or share it properly
Third-party app calls Graph and stores links for laterYesStop persisting links; redeem them at request time with a token
chapter 03

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.

tableSend the wrong token to the wrong host and you'll get a 401. This is which one goes where.
You're callingToken audienceTypical permission
Microsoft Graph file APIshttps://graph.microsoft.comFiles.Read or Files.ReadWrite
SharePoint URLs returned by Graphhttps://{tenant}.sharepoint.comThe matching SharePoint permission
Graph URLs via the tenant settinghttps://graph.microsoft.comSame Graph token you already hold
driveItem contentStreamhttps://graph.microsoft.comNo 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

  1. Oct 8, 2026
    Microsoft's migration post

    Microsoft's SharePoint team posts the migration guide. If you write code against Graph file APIs, start there.

  2. Nov 13, 2026
    Message Center MC1551122

    Admins get the Power Platform notice. It names thumbnails, Image control loads and the Word Online link as things that may break.

  3. Now to Q1 2027
    Inventory and fix

    Use these months to find the custom pieces, fix them and test them. Leave room for vendors who'll ship late.

  4. Apr 1, 2027
    Removal begins

    The 302 redirects stop and SharePoint URLs in responses lose their tempauth token. Anything you didn't fix can start failing from here.

side by sideWaiting until something breaks against fixing it this quarter
Left alone
  • 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
Fixed ahead
  • 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
chapter 04

What to do now, by role

Who does what before April

Business ownerthis week
  • 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.
Power Platform makersthis month
  • 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.
SharePoint and Entra adminsthis month
  • 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.
Developers and ISVsthis quarter
  • 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.
Before you touch anything, see where your tenant standsexample output
# 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
chapter 05

Make the fix stick

The order we'd work in

  1. 01
    Inventory 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.

  2. 02
    Read the current settings

    Save the Get-SPOTenantPreAuthSettings output. Deny beats Allow, and Allow beats IsDisabled, so an app on both lists gets nothing.

  3. 03
    Fix 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.

  4. 04
    Rehearse 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.

  5. 05
    Republish 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.

  6. 06
    Watch 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

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.

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. 01 · POWER PLATFORM 02 · MICROSOFT 365 03 · OUTSIDE Graph token 302 or link no header link works Code component gallery images Cloud flow HTTP action Microsoft Graph file APIs SharePoint Online tempauth link Email recipient forwarded link © Cohash · cohash.com
01 · POWER PLATFORM02 · MICROSOFT 36503 · OUTSIDE Code component: gallery images Code component gallery images Cloud flow: HTTP action Cloud flow HTTP action Microsoft Graph: file APIs Microsoft Graph file APIs SharePoint Online: tempauth link SharePointOnline tempauth link Email recipient: forwarded link Email recipient forwarded link Graph token no header link works © Cohash · cohash.com
after

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.

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. 01 · POWER PLATFORM 02 · IDENTITY 03 · MICROSOFT 365 Graph token SharePoint token content bearer header Code component token-aware Custom connector Entra ID auth Microsoft Entra ID two audiences Microsoft Graph content direct SharePoint Online Authorization header © Cohash · cohash.com
01 · POWER PLATFORM02 · IDENTITY03 · MICROSOFT 365 Code component: token-aware Code component token-aware Custom connector: Entra ID auth Customconnector Entra ID auth Microsoft Entra ID: two audiences Microsoft Entra ID two audiences Microsoft Graph: content direct Microsoft Graph content direct SharePoint Online: Authorization header SharePointOnline Authorizationheader Graph token SharePoint token content bearer header © Cohash · cohash.com
chapter 06

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

01 Canvas app code component 02 Graph link no tempauth 03 SharePoint 401 04 Blank tiles
scenario 01High risk
A field team's photo gallery
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.
01 Cloud flow 02 Word Online create document 03 Emailed link needs sign-in 04 Customerstuck
scenario 02Medium risk
Contracts sent from a flow
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.
01 Desktop app old build 02 Uploadsession plain URL 03 SharePoint needs token 04 Upload fails
scenario 03High risk
An ISV desktop app
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.
chapter 07

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.

key takeaways

What to take from this

  1. 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.

  2. 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.

  3. 03

    Microsoft says not to rely on the Word Online create action's link as an anonymous download. Stop emailing it.

  4. 04

    Most fixed apps hold two tokens: Graph, plus SharePoint for the URLs Graph returns.

  5. 05

    Test in a test tenant with one app ID at a time, and save the pre-auth settings before you change anything.

  6. 06

    If you ship software to other companies, get the fixed version out months early.

fact-checked November 2026 against vendor and official documentation · where to go next
  1. How Cohash delivers Microsoft Power Platform: scope, roles and architecture
  2. How Cohash delivers Microsoft Entra ID: scope, roles and architecture
  3. Hire vetted Microsoft Power Platform engineers
  4. Workflow automation
  5. Book a 30-minute working session with a senior engineer
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.

up next in this track

Keep the thread going.

ERP, CRM and ITSM work that holds up after go-live.

  1. 01Dataverse for Teams is going away: what to keep, move or let go before September 2027
  2. 02What an SAP S/4HANA migration actually costs: the drivers, the ranges and where budgets break
  3. 03SAP ECC mainstream maintenance ends in 2027: what you need to decide this quarter
  4. 04CMS-0057-F on January 1, 2027: what health plans on Facets, QNXT and HealthRules need live
  5. 05Still running Dynamics AX 2012? When to upgrade to Finance and Operations and when to start over
  6. 06Dynamics 365 Business Central vs Finance and Operations: which one you actually need
  7. 07Export to Azure Data Lake stops on November 30. Is your Finance and Operations close ready?
  8. 08Dynamics 365 storage limits won't bite before January 2027: what gets blocked, and how to get out
  9. 09Microsoft is dropping RSAT in May 2027. What tests Finance and Operations after that?
  10. 10Unmanaged developer environments end December 15
  11. 11Field Service's link to Finance ends in February 2027: plan the move to Project Operations
  12. 12Is your Dynamics 365 Finance build ready for Norway's SAF-T 1.40 and French e-reporting?
  13. 13SharePoint's tempauth links stop working on their own in April 2027. Here's what breaks in Power Apps and Power Automate
  14. 14UiPath is retiring the Windows 10 and Server 2019 images for cloud robot VMs. Here's how to move your pools
  15. 15Salesforce to Salesforce goes dark on your Spring '27 upgrade weekend. Here's how to replace it
  16. 16UiPath is moving its official package feed to pkgs.uipath.com. Find what still points at the old address
  17. 17NetSuite is retiring SuiteScript 1.0, 2.0 and 2.x. Here's how to get your scripts onto 2.1 in time
all learning tracks →
OLD STANDARD IMAGES Windows Server 2019 Windows 10 Unsupported afterApr 30 SUPPORTED IMAGES Windows Server 2025 Windows 11Enterprise Custom imagesupgraded
Engineering · 13 minUiPath is retiring the Windows 10 and Server 2019 images for cloud robot VMs. Here's how to move your pools

Same robots, same processes. The Windows underneath has to change by April 2027.

read next
next step

Tell us what you're running. We'll tell you what we'd do first.

A 30-minute working session with a senior engineer. No slides.

useful to bring
  • The platform and the version you're on
  • Where you need to get to, and by when
  • What's custom: rules, plugins, integrations
  • Any audit finding or deadline driving it