Skip to content

People Search REST API 401 Response #10261

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
kristen-argent opened this issue May 14, 2025 · 9 comments
Open
1 of 9 tasks

People Search REST API 401 Response #10261

kristen-argent opened this issue May 14, 2025 · 9 comments
Assignees
Labels
area:csom/rest/api Category: SharePoint Client Side Object Model SDK / REST API type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@kristen-argent
Copy link

Target SharePoint environment

SharePoint Online

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

SharePoint REST API

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

Hitting the API in any way

Describe the bug / error

We have developed an application that makes use of the rest search API - until Tuesday 6th of May this was working well in all environments.

Since then it has ceased working in some environments (Australian) and is now returning a 401 Unauthorized response.
It continues to work in two of our tenants (US based)

We use sourceId=B09A7990-05EA-4AF9-81EF-EDFAB16C4E31.

The query is being run by the application entra id, not using a user token.
Hitting search api without the source id filter also works correctly.

Steps to reproduce

Request URL with app token.

https://___.sharepoint.com/_api/search/query?sourceid='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31'&querytext='*'

Expected behavior

Search results to return

Refer to closed ticket:
#10246

@kristen-argent kristen-argent added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label May 14, 2025
@Ashlesha-MSFT Ashlesha-MSFT added the area:csom/rest/api Category: SharePoint Client Side Object Model SDK / REST API label May 15, 2025
@Ashlesha-MSFT
Copy link

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

@Ashlesha-MSFT
Copy link

@kristen-argent,
We are unable to reproduce the issue.
It’s possible that the fix is still propagating across all regions and tenants. I recommend allowing some time for it to fully roll out to your specific environment.

@kristen-argent
Copy link
Author

@Ashlesha-MSFT - referring to the information I provided in my earlier ticket #10246 - this issue definitely has not been resolved.

It is an issue in only some of our tenants - earlier this week in that issue you stated it had been raised as a bug in the engineering team, did they roll out a fix for it?
It’s affecting us and also a client and based on the comments on the other ticket I don’t think a fix has been pushed through?

@kristen-argent
Copy link
Author

@Ashlesha-MSFT all of our tenants are now impacted by this issue

@Ashlesha-MSFT Ashlesha-MSFT self-assigned this May 16, 2025
@f0oster
Copy link

f0oster commented May 19, 2025

Facing this same issue, authenticating with certificate (no user context - app auth) and also using SourceID b09a7990-05ea-4af9-81ef-edfab16c4e31.

Issue first discovered May 10th at 19:07 GMT +11) when a weekly maintenance script failed to run.

Our tenant location and data location is Australia / Australian data centers.

@DmitriyVdE
Copy link

Hi,

I'm also facing this issue on a customer's tenant, and can reproduce this on our test tenant.
Specifically when using the Result Source ID 'b09a7990-05ea-4af9-81ef-edfab16c4e31' the API returns a 401 error.
When running the same query without a Result Source ID the query runs fine, but of course doesn't return any results.

Both tenants run in West Europe.

@f0oster
Copy link

f0oster commented May 25, 2025

@Ashlesha-MSFT has there been any progress on this issue?

@kristen-argent
Copy link
Author

@Ashlesha-MSFT has there been any progress on this issue?

An update would be great, its been broken for a month now and the first ticket I opened was closed even though it was confirmed as a bug. We have tickets open directly with Microsoft but they aren't much help at all unfortunately.

@Ashlesha-MSFT
Copy link

@f0oster, @kristen-argent,
Thanks for following up. There’s no new update from the engineering team yet. We understand how frustrating this ongoing issue is, especially given the previous ticket closure.

We’re actively tracking it and will share any progress as soon as we hear back. Appreciate your patience in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:csom/rest/api Category: SharePoint Client Side Object Model SDK / REST API 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

4 participants