Opening Sharepoint file having access rights

Hello,

I am trying to access files which are loaded in our company Sharepoint location. Using any internet browsers (IE, Chrome) I can open the files. But I am clueless about how to access the same using R.

FileOne <- GET(
"https://ourDomain.sharepoint.com/sites/xxxx/File_Name1.xlsx",
authenticate("ourDomain\myusername", "mypassword")
)

When I Run the above I am getting the following

Response [https://ourDomain.sharepoint.com/sites/xxxx/File_Name1.xlsx]
Date: 2020-02-17 10:16
Status: 403
Content-Type: text/plain; charset=utf-8
Size: 13 B

Could you please help me how to resolve 403 Status error.

Thanks in advance.
Regards,
Sukumar

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.