SharePoint Site created in Dutch. Generated Refresh and access tokens doesn't work and throws 401 UNAUTHORIZED in case of file upload and download through SharePoint Rest APIs

Roy, Saikat 15 Reputation points
2023-08-17T11:32:21.32+00:00

When we create a SharePoint site and register an app, we can generate the Refresh and Access tokens by registering required permissions for the App.
Using the generated Access token, we can also Upload a document or download a document from the SharePoint site through the SharePoint REST APIs.

Now we have created a SharePoint site selecting language as Dutch instead of English.

Registered an App with required permissions in a similar way and have generated the Refresh and Access tokens.

But while uploading or downloading any document through the SharePoint REST API, we are getting 401 UNAUTHORIZED.

We have also observed that the "Shared Documents" folder gets renamed to "Gedeelde documenten" in case of the Site in Dutch, and we tried in that way as well but with the same error response.

User's image

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,229 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ChengFeng - MSFT 5,045 Reputation points Microsoft External Staff
    2023-08-18T02:00:54.02+00:00

    Hi @Roy, Saikat

    Judging from your error message, you did not verify correctly.

    Please try to add Bearer in front of the token

    User's image

    Here is a link for your reference:

    https://www.c-sharpcorner.com/article/how-to-test-sharepoint-online-rest-apis-using-postman-tool/#:~:text=In%20this%20article%2C%20I%20will%20walk%20you%20through,the%20steps%20as%20shown%20in%20the%20screenshot%20below.


    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.

    Best Regards

    Cheng Feng


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.