SharePoint REST API with Basic Auth

Dhruvin Moradiya 55 Reputation points
2023-09-27T13:26:26.2033333+00:00

Is there way we can use SharePoint REST API with basic authentication. Like Username and Password. I have used tried using SharePoint REST API's using OAUTH2 and It's works fine. But I also want to use it using username and password.

For my use case, I use SharePoint REST API to fetch files from document library. I also use GetChanges method to list changes. Just looking for way to use same with basic auth.

If possible please share documentations as well.

Thanks in Advance.

Microsoft 365 and Office SharePoint Development
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2023-09-28T02:12:45.22+00:00

    Hi @Dhruvin Moradiya

    Thanks for letting us know your user experience. According to your case description, I do understand how frustrated you are now.

     

    When I received the case, I searched a lot of documents did a lot of researches. And I feel regretful to inform you that it turns out to be a by-design one.

    When calling the API, you need to obtain a token to make the API runnable. Even if you enter the user and password, a token will not be returned.

     User's image

    And I noticed that some end users have also proposed the same request, it is highly recommended that you can vote this ticket. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.

     

    feedback
    https://feedbackportal.microsoft.com/feedback/


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.