Skip to content

People Search REST API 401 Response #10246

Open
@kristen-argent

Description

@kristen-argent

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 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?querytext=%27user%27&sourceid=%27b09a7990-05ea-4af9-81ef-edfab16c4e31%i27

Expected behavior

Search results returned

Metadata

Metadata

Assignees

Labels

area:searchsharepoint-developer-supportsharepoint-developer-supportstatus:fixedIssue was fixed in current or prior release.type:bug-confirmedConfirmed bug, not working as designed / expected.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions