-
Notifications
You must be signed in to change notification settings - Fork 1k
People Search REST API 401 Response #10246
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
Comments
Hello @kristen-argent, |
We were unable to reproduce the issue in our tenant. To assist further, could you please share the tenant details? This will help us escalate and investigate the matter more effectively with our engineering team. |
The tenant with issues: The tenant still working: |
@Ashlesha-MSFT any update on this issue? Looks like you have been able to reproduce after the tenant information was provided? Are we likely to see a fix soon? |
@kristen-argent, |
Not sure if it is related, but in some tenants I get 401 Unauthorized when calling the Search REST API like below, while in other tenants I do not.
I have checked the App registration in entra, and they are 100% identical. I use HttpClient for the call, using Bearer token like this:
On the failing tenants I get this response:
|
This was an issue on the Microsoft yesterday, which was also logged at the tenant status updates. Issue has been resolved. You can find a b it more details on the following GitHub issue where this was also discussed in the context of PnP search web parts - microsoft-search/pnp-modern-search#4361. Closing as resolved. |
@VesaJuvonen with all due respect this issue was completely different from the issue yesterday and is still occurring. I would like this issue re opened as I believe there is a fix being developed as per @Ashlesha-MSFT. |
Hi - same here... Error still occurs. We have an app which has all necessary access. The Submit-PnPSearchQuery for the SourceId "b09a7990-05ea-4af9-81ef-edfab16c4e31" (People) returns an access error. It works fine with other Sources (or without a SourceId using the default one) This stopped working last week. |
Still unsure whether related, but @VesaJuvonen I still get same error as mentioned above. |
Will comment on both these tickets but all of our tenants are now impacted by this issue. |
have exact same issue. I also have a ticket in as well. |
As per my note in #10261 - also still experiencing the same issue querying SourceId b09a7990-05ea-4af9-81ef-edfab16c4e31. @VesaJuvonen I think this should be reopened? |
Reopening based on comments. Hopefully gets also routed with other channels to the support pipeline. |
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
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
The text was updated successfully, but these errors were encountered: