Azure / Microsoft365R

R SDK for interacting with Microsoft 365 APIs
Other
318 stars 46 forks source link

Error when accessing Sharepoint site: site not found #180

Closed emmalink1 closed 9 months ago

emmalink1 commented 1 year ago

I have been able to use this package to access files in my work OneDrive account but have been unable to access my employer's Sharepoint site. When I run: site <- get_sharepoint_site("https://practicalfarmers.sharepoint.com/")

I get the following error:

Error: Site 'https://practicalfarmers.sharepoint.com/' not found.

This my employers exact Sharepoint url; is there another way that I'm supposed to format it?

RPanczak commented 1 year ago

I always get more luck with device_code authentication @emmalink1

site <- get_sharepoint_site(site_url = "https://practicalfarmers.sharepoint.com/", auth_type = "device_code")

hongooi73 commented 1 year ago

@emmalink1 I don't have access to Sharepoint right now, but typically a site is not the top-level URL; it will instead be something like "practicalfarmers.sharepoint.com/sites/my-site-name".