Skip to content

Creating Team site with 'SharePointOnlineCredentials' no longer working ["Forwardable token to MSGraph is not available"] #10293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 9 tasks
Tanddant opened this issue Jun 5, 2025 · 5 comments
Assignees
Labels
sharepoint-developer-support sharepoint-developer-support type:bug-confirmed Confirmed bug, not working as designed / expected. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@Tanddant
Copy link
Contributor

Tanddant commented Jun 5, 2025

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

SharePoint CSOM

Developer environment

Windows

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

SharePointPnPCoreOnline 3.12.1908

Describe the bug / error

I have a VERY old solution, that has been running flawlessly since 2018, and now all of a sudden about two weeks ago it stopped working, flat out.

The solution is following the (dated) instructions from learn, here to create modern team sites.

Now all of a sudden I'm getting an error "Forwardable token to MSGraph is not available" (Code: "-1, Microsoft.Office.Server.Directory.DirectoryObjectUnauthorizedAccessException")

And while I appreciate that things have improved a lot since then, and that I should just move to Graph, that's no small feat to upgrade an old .NET Framework solution all the way up to be modern, and I'm not interested in a game of tug-of-war over the bill that my client would get if I had to spent hours upgrading this solution.

I'm more than happy to accept this as "the new way", if you can point me to a piece of documentation/blog where you announced this change, and I just missed it, but otherwise, this feels a little big like a rug-pull I know loads of orgs have older solutions still running where they no longer have contact to any of the devs that can help them fix it.

Steps to reproduce

  1. Find an old project that relies on the SharePointOnlineCredentials object for auth
  2. Attempt to create a Modern Team Site

Expected behavior

To provision a modern team site

@Tanddant Tanddant added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Jun 5, 2025
@Tanddant Tanddant changed the title Creating Team site with SharePointOnline Credentials no longer working ["Forwardable token to MSGraph is not available"] Creating Team site with 'SharePointOnlineCredentials' no longer working ["Forwardable token to MSGraph is not available"] Jun 5, 2025
@Ashlesha-MSFT
Copy link

Hello @Tanddant,
Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.

@Ashlesha-MSFT Ashlesha-MSFT self-assigned this Jun 5, 2025
@Ashlesha-MSFT
Copy link

@Tanddant,
we're actively taking follow-ups with the engineering team on this issue regarding SharePointOnlineCredentials and modern site provisioning. The questions you've raised are valid, and we're working to get clarity on whether this is an expected backend change or part of the platform's evolution.

we'll share updates as soon as we hear back from engineering.

Thanks for your patience!

@Ashlesha-MSFT Ashlesha-MSFT added the sharepoint-developer-support sharepoint-developer-support label Jun 10, 2025
@Kaaber
Copy link

Kaaber commented Jun 10, 2025

We're having similar logic for creating sites which also stopped working very recently, giving the following error message when a PowerShell script is run that provisions modern team sites and their related data:

New-PnPSite : {"error":{"code":"-1, Microsoft.Office.Server.Directory.DirectoryObjectUnauthorizedAccessException","message":"Forwardable token to MSGraph is not available"}}

@Ashlesha-MSFT
Copy link

@Tanddant, @Kaaber,

We were able to reproduce the issue, and we are investigating it. We have logged this as a bug, and our engineering team will look into it.
Thank you for your patience!

@Ashlesha-MSFT Ashlesha-MSFT added the type:bug-confirmed Confirmed bug, not working as designed / expected. label Jun 10, 2025
@Tanddant
Copy link
Contributor Author

I should add, it seems the rest of my code functions, with SharePointOnlineCredentials - so this might be a change on the Graph side of the house (as indicated by the error message), but really hoping for some clarification, or public statement if this is the direction we're moving.

Also, is there any way to identify sign-ins done with SharePointOnlineCredentials in my logs somewhere? - would love to check through tenants with solutions that we've inherited to make sure they won't face issue, or aren't facing issues they haven't identified themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sharepoint-developer-support sharepoint-developer-support type:bug-confirmed Confirmed bug, not working as designed / expected. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests

3 participants