Forum Widgets
Latest Discussions
Why 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 Contributor139Views7likes6CommentsCongratulations, Microsoft products couldn't have been worse even if you tried.
I was thinking why should I bother posting about this, who would read it, and would it make Microsoft any better if someone reads this? But the world would never improve if no one reports this kind of bad design. So here we go. Why make it so hard to sign up for Azure, register an app, set up permissions, register an app in the MDN (whatever the F it stands for), just to be able to connect to build an ETL job that pulls from multi-tenant onedrive. Why so much text everywhere that it becomes unreasonable to read and find information that matters. Why pretend you have an AI called Copilot when it doesn't have access to data and all it does is spit back information from the docs. How to fix this? Put yourself in the shoes of someone new who's integrating Microsoft products for the first time. No assumptions. No required prior knowledge. Less text, straight to the point. No weird error messages with complicated Error IDs. If no one understands them, why bother bloat the limited screen space with it? Why not have an actual AI that can give concrete pointers instead of showing a link to a generic documentation page? This could go on, but I'm gonna practice what I preach and get straight to the point with the suggestions above. The only moat Microsoft has is the heavy corporate contracts that bind stupid corporations to use Microsoft products and services. The moment a new provider with simpler/faster/cheaper services shows up, developers and people working day-to-day with Microsoft services will gladly migrate over. My 2-cent bottle in the sea.r13iMay 05, 2025Copper Contributor145Views4likes2CommentsCannot access the one drive using user email addres (like "/drives/{emailAddress}")
Hi, We were using the Azure Application with special rights to upload a file to user's One Drive using OneDrive API where we identify the drives using user email. We were using the for example /drives/{userEmailAddress}/root:{filePath} to get the file info (see - https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_get), but since 11th of July 2021 that does not work. Only {UserID[GUID]} might be used there and the {userEmailAddress} does not work any more. Question is if this was intended and it will stay like that or it was changed by mistake?Jan_T1505Jul 14, 2021Copper Contributor1KViews3likes0CommentsHow 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 Contributor23KViews3likes5CommentsDetect File Attribute for files on demand (PINNED/UNPINNED)
We try to work with the attributes of files in OneDrive for Business on Windows 10 (1709). This article ha a great overview: https://www.petri.com/managing-onedrive-files-demand-windows-10-fall-creators-update This is a link that documents the attributes flags: https://msdn.microsoft.com/en-us/library/windows/desktop/gg258117(v=vs.85).aspx I don't find an exact representation of the pinned and unpinned attribute: C:\Users\marcoscheel\OneDrive - Glück & Kanja Consulting AG\Transfer> attrib /? Displays or changes file attributes. ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [+O | -O] [+I | -I] [+X | -X] [+P | -P] [+U | -U] [drive:][path][filename] [/S [/D]] [/L] + Sets an attribute. - Clears an attribute. R Read-only file attribute. A Archive file attribute. S System file attribute. H Hidden file attribute. O Offline attribute. I Not content indexed file attribute. X No scrub file attribute. V Integrity attribute. P Pinned attribute. U Unpinned attribute. B SMR Blob attribute. [drive:][path][filename] Specifies a file or files for attrib to process. /S Processes matching files in the current folder and all subfolders. /D Processes folders as well. /L Work on the attributes of the Symbolic Link versus the target of the Symbolic Link We want to interact with the files in C and/or C#. This is a sample directory with files and the three states: This is a LS on a folder with different files Directory: C:\Users\marcoscheel\OneDrive - Glück & Kanja Consulting AG\Transfer Mode LastWriteTime Length Name ---- ------------- ------ ---- -----l XX.XX.XXX 11:09 5386058 o365api.pbix -----l XX.XX.XXX 21:25 18325 test.docx -----l XX.XX.XXX 16:25 (3631219) When-To-Use-What-In-Office-365.pdf This is the attribute as an int: C:\Users\marcoscheel\OneDrive - Glück & Kanja Consulting AG\Transfer> get-item *.* | % { $_.Attributes } ReparsePoint 525312 4199936 C:\Users\marcoscheel\OneDrive - Glück & Kanja Consulting AG\Transfer> get-item *.* | % { [int]$_.Attributes } 1024 525312 4199936 The system is capable to represent the cloud only file as a ReparsePoint, but the pinned and unpinned file are not matched. Is there an offical documentation regarding these "missing" flags.Marco ScheelFeb 16, 2018Iron Contributor11KViews3likes4CommentsPersistent OneDrive File Handler Cache After Removal
I’m a developer supporting an Azure AD application that was previously registered with a File Handler for PDF files (used to display the "Open with Lumin PDF" option in OneDrive’s context menu). The File Handler configuration was removed on June 19, 2024. However, some of our customers are still seeing the "Open with Lumin PDF" option in their OneDrive UI. This is causing confusion and additional support overhead on our side. I understand this is likely a caching issue, so I’ve asked our customers to: Clear the server-side cache by following https://learn.microsoft.com/en-us/onedrive/developer/file-handlers/reset-cache?view=odsp-graph-online Clear their browser cache, re sign-in in a new browser profile I’ve already tried all possible solutions within my control to resolve this caching issue, but none have been effective. What else can I do to address this?DucDaoAug 05, 2025Copper Contributor72Views2likes1CommentDisable 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 Contributor420Views2likes4CommentsHow 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.7KViews2likes7CommentsSpecial appfolder is sometimes named Graph
Expected or Desired Behavior According to the documentation at https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/drive_get_specialfolder the special appfolder should be named /Apps/{Application Name} Observed Behavior For some users the appfolder is named /Apps/Graph even though the app name is not Graph. For users with the appfolder named Graph the create subscription request fails. The create subscription request for the resource /me/drive/special/approot fails with 503 and the message [Status Code: ServiceUnavailable; Reason: User content migrated. Cannot access disabled item.] Steps to Reproduce This happens for some of our users, but not all. I have been able to reproduce it on one onedrive-user that i have personal access to. Does anyone have any idea how to resolve this? OneDrive is unusable for 50% of our users at the moment.steingrdJul 25, 2024Copper Contributor298Views2likes0CommentsFileHandler in the OneDrive context menu in "My Files" not showing the displayName (submenu missing)
When using a Microsoft 365 file handler add-in (OneDrive File Handlers 2.0) with two custom actions. The following inconsistency appears for the context menu in the document library "My Files". Usually, with two custom actions there should be an expandable submenu. But this is missing only for some users and not for others, as I've checked the behavior with two different users. See the "addIns" definition of the application manifest below. Observed behavior: Only in "My Files" in OneDrive, the context menu shows the custom actions differently than in the other document libraries. The "displayNames" are not shown at all, as the sub menu is missing. Rather only the "actionMenuDisplayName" is shown for each custom action which does not seem intended. Context menu: Open Preview ... actionMenuDisplayName actionMenuDisplayName Expected behavior: The expected behavior if there is only one file-handler add-in installed would be the following for the context menu, to have a sub-menu that expands and that shows the displayNames of the custom actions: Context menu: Open Preview ... actionMenuDisplayName > Submenu containing "displayName" of action 1 and "displayName" of action 2 The default behavior is as expected for the document libraries in SharePoint and Teams (files) even when accessing sharepoint sites in OneDrive via quick access the behaviour is as expected. Application manifest: "addIns": [ { "id": "some-id", "type": "FileHandler", "properties": [ { "key": "actions", "value": "[{\"type\":\"custom\",\"displayName\":\"Action 1\",\"shortDisplayName\":\"Act 1\",\"icon\":{\"png1x\":\"...email address removed for privacy reasons\"},\"url\":\"someEndpoint\",\"availableOn\":{\"file\":{\"extensions\":[\"listOfFiletypes\"]},\"allowMultiSelect\":false}}, {\"type\":\"custom\",\"displayName\":\"Action2\",\"shortDisplayName\":\"Act2\",\"icon\":{\"png1x\":\".../email address removed for privacy reasons\"},\"url\":\"someEndpoint\",\"availableOn\":{\"file\":{\"extensions\":[\"listOfFiletypes\"]},\"allowMultiSelect\":false}}]" }, { "key": "appIcon", "value": "{\"svg\":\"...icon.svg\",\"png1x\":\"...email address removed for privacy reasons\",\"png1.5x\":\"...email address removed for privacy reasons\",\"png2x\":\"...email address removed for privacy reasons\"}" }, { "key": "actionMenuDisplayName", "value": "Application" }, { "key": "version", "value": "2" } ] } ],Stefano561Jun 17, 2024Copper Contributor528Views2likes2Comments