Forum Widgets
Latest Discussions
Sharing Folders with External Users spams Organization Login Prompts
In OneDrive, I can create a sharing link for a folder and set the link so "Anyone with the link can edit". I assume this means that even users outside my organization can edit the folders and files within the shared folder. If I test this with an external account, I'm able to edit the files and folders. However, I'm periodically prompted with a Microsoft login pop-up window. I can ignore/close the login prompt and continue editing the files. However, the login prompt keeps popping up periodically, including every time I refresh the screen. If I try to log in with the external user account, it gives me an error saying I'm not part of the tenant and I need to be added as an external user to the tenant. But then I can still close that and continue editing the files. If I send the invite link for a folder via a graph API call, I'm forced to set the "requireSignIn" property to True in the body of the request. If I set it to False, I get an error: RequireSignIn cannot be false for folders I do not run into the same issue when sharing files. Whether I create the link in OneDrive UI or via the API, the external user does not get hit repeatedly with login prompts. Am I doing something wrong or is this a bug? If sharing a folder is not allowed outside an organization, why does it allow me to create a sharing link where "Anyone with the link can edit"? And why is the external user still able to edit the files despite the repeated login prompts?fstephaneJan 10, 2023Copper Contributor4.1KViews0likes14CommentsHow to generate a direct download link from the shared OneDrive link
Dear Experts and Supporters I'm a developer working on an issue related to downloading files from OneDrive. Everything was running fine until a few days ago when I reopened my app Here are my lines // shared OneDrive link example // https://1drv.ms/u/s!Atj71Lw5QEdsrQnTRHMj-fjGc49N?e=hOB5gO if (string.IsNullOrWhiteSpace(sharingURL)) return string.Empty; var base64Value = Convert.ToBase64String(Encoding.UTF8.GetBytes(sharingURL)); var encodedUrl = "u!" + base64Value.TrimEnd('=').Replace('/', '_').Replace('+', '-'); var directlyUrl = $"https://api.onedrive.com/v1.0/shares/{encodedUrl}/root/content"; And now when I cannot download from OneDrive, I have debugged and realized that there was a 401 Unauthorized exception But the file has been shared for Everyone with Edit permissions. I thought Microsoft had changed something about the shared link recently and the current way to get the direct download link as it is now is not possible. The shared link I see it's longer than before and different in format (no s!, no ?e=) So please kindly help me to solve this case. Thanks in advance! Henry Tien (email address removed for privacy reasons)tienitAug 08, 2024Copper Contributor4.7KViews2likes7CommentsWhy isn't there a PowerShell module for OneDrive?
Out of all the various applications that Microsoft produce, OneDrive stands out as an anomaly. Where is the PowerShell module for managing it? Some very simple requirements by developers are simply missing. A very simple one - can I test whether OneDrive is still synchronising and therefore I have to wait before my program/script progresses so that I'm sure we've got the latest versions or won't suddenly get "Cloud provider not running". OneDrive has been around years, this really perplexes me...robnicholsonmaltAug 18, 2025Brass Contributor139Views7likes6CommentsA problem when download OneNote file using OneDrive api by curl
Hi Everyone, When I try to download onenote files by OneDrive api, curl returns 56 when sending download requests for some onenote files. Below is one of the details of the api request/reponse. I have tried to request the metadata of that onenote file and the api behaved as expected, so it seems that the issue is only related to the download itself. Is it OneDrive api limitation such that some onenote files could not be downloaded ? If I want to backup whole onenote file From M365 OneNote/Sharepoint, is oneNote api suitable to download all components of onenote file ? And is it suitable to restore the backup file to M365 OneDrive/SharePoint ? curl -v --location --request GET '[https://xxxx-my.sharepoint.com/_api/v2.0/drives/](https://xxxx-my.sharepoint.com/_api/v2.0/drives/)<my_drive_id>/items/<my_item_id>/content' --header 'Authorization: Bearer <Bearer>' * TLSv1.2 (IN), TLS header, Supplemental data (23): * TLSv1.2 (OUT), TLS header, Supplemental data (23): * TLSv1.2 (IN), TLS header, Supplemental data (23): * TLSv1.2 (IN), TLS header, Supplemental data (23): < HTTP/2 302 < cache-control: no-cache, no-store < pragma: no-cache < content-type: application/octet-stream < expires: -1 < location: [https://xxxx.sharepoint.com/sites/OS0709-D/_layouts/15/download.aspx?UniqueId=<uid>&Translate=false&...](https://xxxx.sharepoint.com/sites/OS0709-D/_layouts/15/download.aspx?UniqueId=0c5547be-c983-4782-a5d0-30df30f00072&Translate=false&tempauth=)<tempauth>&ApiVersion=2.0 < p3p: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI" < x-networkstatistics: 0,525568,0,0,2094697,0,379488 < x-sharepointhealthscore: 3 < x-sp-serverstate: ReadOnly=0 < odata-version: 4.0 < x-download-options: noopen < content-disposition: attachment < spclientservicerequestduration: 36 < sprequestduration: 37 < x-aspnet-version: 4.0.30319 < x-databoundary: EU < x-1dscollectorurl: [https://eu-mobile.events.data.microsoft.com/OneCollector/1.0/](https://eu-mobile.events.data.microsoft.com/OneCollector/1.0/) < x-ariacollectorurl: [https://eu-mobile.events.data.microsoft.com/Collector/3.0](https://eu-mobile.events.data.microsoft.com/Collector/3.0) < sprequestguid: ea24d6a0-107c-7000-3c47-9471817ea836 < request-id: ea24d6a0-107c-7000-3c47-9471817ea836 < ms-cv: oNYk6nwQAHA8R5RxgX6oNg.0 < strict-transport-security: max-age=31536000 < x-frame-options: SAMEORIGIN < content-security-policy: frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com teams.microsoftonline.cn *.powerapps.com *.yammer.com *.officeapps.live.com *.office.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com; < x-powered-by: ASP.NET < microsoftsharepointteamservices: 16.0.0.24016 < x-content-type-options: nosniff < x-ms-invokeapp: 1; RequireReadOnly < x-cache: CONFIG_NOCACHE < x-msedge-ref: Ref A: FC459A849CD54010845E23ECF71439CD Ref B: TPE30EDGE0912 Ref C: 2023-09-01T09:45:07Z < date: Fri, 01 Sep 2023 09:45:07 GMT < content-length: 0 < * TLSv1.0 (OUT), TLS header, Certificate Status (22): * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.2 (IN), TLS header, Certificate Status (22): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, Server finished (14): * TLSv1.2 (OUT), TLS header, Certificate Status (22): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * TLSv1.2 (OUT), TLS header, Finished (20): * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.2 (OUT), TLS header, Certificate Status (22): * TLSv1.2 (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS header, Finished (20): * TLSv1.2 (IN), TLS header, Certificate Status (22): * TLSv1.2 (IN), TLS handshake, Finished (20): * TLSv1.2 (OUT), TLS header, Supplemental data (23): * TLSv1.2 (OUT), TLS header, Supplemental data (23): * TLSv1.2 (OUT), TLS header, Supplemental data (23): * TLSv1.2 (OUT), TLS header, Supplemental data (23): > GET /sites/OS0709-D/_layouts/15/download.aspx?UniqueId=<uid>&Translate=false&tempauth=<tempauth>&ApiVersion=2.0 HTTP/2 > Host: xxxx.sharepoint.com > user-agent: curl/7.86.0 > accept: */* > * TLSv1.2 (IN), TLS header, Supplemental data (23): * TLSv1.2 (OUT), TLS header, Supplemental data (23): * TLSv1.2 (IN), TLS header, Supplemental data (23): * TLSv1.2 (IN), TLS header, Supplemental data (23): < HTTP/2 302 < cache-control: private < content-type: text/plain < location: [https://190124-ipv4v6.gr.global.aa-rt.sharepoint.com/sites/OS0709-D/_layouts/15/download.aspx?Unique...](https://190124-ipv4v6.gr.global.aa-rt.sharepoint.com/sites/OS0709-D/_layouts/15/download.aspx?UniqueId=0c5547be-c983-4782-a5d0-30df30f00072&Translate=false&siteHost=xxxx.sharepoint.com&tempauth=)<tempauth>&ApiVersion=2.0 < p3p: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI" < x-networkstatistics: 0,525568,0,0,687952,0,97344 < x-sharepointhealthscore: 2 < sprequestguid: ea24d6a0-409a-7000-3c47-93101f35ea5e < request-id: ea24d6a0-409a-7000-3c47-93101f35ea5e < ms-cv: oNYk6ppAAHA8R5MQHzXqXg.0 < strict-transport-security: max-age=31536000 < x-aspnet-version: 4.0.30319 < sprequestduration: 25 < spiislatency: 1 < x-powered-by: ASP.NET < microsoftsharepointteamservices: 16.0.0.24016 < x-content-type-options: nosniff < x-ms-invokeapp: 1; RequireReadOnly < x-cache: CONFIG_NOCACHE < x-msedge-ref: Ref A: 0A695B98792B463DA2C4B0329A0DCE1E Ref B: TPE30EDGE0609 Ref C: 2023-09-01T09:45:08Z < date: Fri, 01 Sep 2023 09:45:07 GMT < content-length: 0 < * TLSv1.0 (OUT), TLS header, Certificate Status (22): * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.2 (IN), TLS header, Certificate Status (22): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, Server finished (14): * TLSv1.2 (OUT), TLS header, Certificate Status (22): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * TLSv1.2 (OUT), TLS header, Finished (20): * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.2 (OUT), TLS header, Certificate Status (22): * TLSv1.2 (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS header, Finished (20): * TLSv1.2 (IN), TLS header, Certificate Status (22): * TLSv1.2 (IN), TLS handshake, Finished (20): * TLSv1.2 (OUT), TLS header, Supplemental data (23): > GET /sites/OS0709-D/_layouts/15/download.aspx?UniqueId=<uid>&Translate=false&siteHost=xxxx.sharepoint.com&tempauth=<tempauth>&ApiVersion=2.0 HTTP/1.1 > Host: 190124-ipv4v6.gr.global.aa-rt.sharepoint.com > User-Agent: curl/7.86.0 > Accept: */* > * TLSv1.2 (OUT), TLS header, Unknown (21): * TLSv1.2 (OUT), TLS alert, decode error (562): * OpenSSL SSL_read: error:0A000126:SSL routines::unexpected eof while reading, errno 0 curl: (56) OpenSSL SSL_read: error:0A000126:SSL routines::unexpected eof while reading, errno 0 ```Joe WuSep 20, 2023Copper Contributor1.5KViews0likes5CommentsBase URL used for Multi Tenants
Hello, I want users to select files from their personal and company drive but it requires a base url which is used to authenticate the user into the drive but the https://github.com/OneDrive/samples/tree/master/samples/file-picking and the https://learn.microsoft.com/en-us/onedrive/developer/controls/file-pickers/?view=odsp-graph-online don't have any indication of where to get a dynamic base url or the base url to use for the multiple tenants. Right now it only works for users in my organisation but I need it for users. Edit: I am using the v8 file picker Thank youHow do I stop onedrive from being my default directory
I am trying to setup an external hard drive as my default directory for pictures but my computer is forcing me to use onedrive. How can I disable this feature? I am using windows 10. This is what happens. There are no folders in any of the directories.BlueRoccoSep 20, 2020Copper Contributor23KViews3likes5CommentsDisable download but enable printing for excel files
Is it possible to create a permission level that prevents guest users from downloading Excel files while also allowing them to print? I want guest users to be able to print reports from a shared Excel file, but I don't want them to be able to download the file to their devices.DakotaCoffeyOct 11, 2024Copper Contributor419Views2likes4CommentsI can't access my files on onedrive
Hello all, Please I am trying to access the OneDrive files page but it dosn't work!! I tested it from more than one browser (Safari - Google Chrome - Firefox), I need access to my files urgently and I don't know what the problem is. I don't use OneDrive app, I only use a web browser This page just appears like thisAljzzarJul 28, 2022Copper Contributor1.2KViews0likes4Comments