0

I am trying to run below SharePoint Online Search REST API in C# console application but receiving error.

https://xxxxxx.sharepoint.com/sites/scr/_api/search/query?querytext=%27scStatusOWSCHCS=Expired%27

The account/username I am using is already a global admin and SharePoint site collection admin and owner.

I am receiving 403 Forbidden error. Can someone suggest what permissions/authorization am I missing?

Can someone give me working example reference? I am using GET method.

I am referring to example in below thread:

I want to implement SharePoint document search using C# api

2
  • Did you enable Multi-factor authentication (MFA) for your environement? Oct 27, 2020 at 7:47
  • Yes. We do have . But i am using a service account. Not my personal account.
    – G_S
    Oct 27, 2020 at 12:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.