Recent Discussions
Automation: Powershell Force OneDrive to Re Sync if there is a Sync Error noted
I am working for the MSP Lucrasoft, we use an RMM to automate powershell scripts to workdevices to monitor them. We get a lot of "OneDrive for Business, error with syncing" alerts. What I always see is that if OneDrive is restarted (manually) the sync is done again and the error is solved. Do people have a powershell script to "re sync", a script that we can initialize when an alert like this is coming up. So we don't have to manually restart or reïnstall onedrive to solve it16Views0likes0CommentsSize Discrepancy Between /drives & /root Endpoints
To preface this post, please view the below link. https://learn.microsoft.com/en-us/answers/questions/1257868/microsoft-onedrive-drive-size-is-different-in-driv When retrieving the total size of a drive via the /drives endpoint - one gets a response as follows. { "deleted": 3143, "remaining": 212025579370, "state": "normal", "total": 1099511627776, "used": 887486045263 } When retrieving the same drive via its /drives/{id}/root endpoint - it returns the following metric. "size": 75217259136 The 'used' metric matches the Microsoft Admin Center OneDrive usage panel. The 'size' metric matches the actual downloaded size of the drive. What is the cause for a discrepancy of 800 GB? A response to the other post details, "The difference between the two values is the additional space used by the system." Could I have some specifics of where I could acquire this system data (or at the very least view some metadata for it)? Thanks!14Views0likes0CommentsOneDrive repeatedly misguiding users
Hi, Just letting you guys know that you are pushing the OneDrive agenda way too much and you are repeatedly misguiding and misrepresenting users on how and where they should store their files, without acquiring proper permission, without disclosing proper procedures, and without informing users on the consequences of their decisions. It's not your place to dictate to users how they should store their files and where to store them and organize them. Additionally, I have brought this up to support in the past: Windows Updates get installed and before I can even login, I get these blue screen prompts to go back to using Edge, as well as to use OneDrive, and to "Backup with OneDrive." The users are essentially being pushed or tricked into agreeing with whatever you want them to do and this is completely wrong. Where do these backups go? What are the folder structures? What "apps" get backed up? How do you offer Restoration in the event of a failure? What is the proper procedure to recover lost files? Do you have File/Version History? Who said it's correct, for example, to synchronize the Windows Desktop among computers? Who is issuing all these incorrect procedures on file management, backup, and synchronization?13Views0likes0CommentsOneDrive Q regarding file access from 2 systems
Scenario: Within the root of one drive I have a directory named RESOURCE_FILES. Within that I have a txt file named MyFile.txt . SCENARIO1: I am at my laptop (named MyLP01) connected to one drive and using a text editor app (note NotePad) I open MyFile.txt that is in OneDrive. If I move to my workstation (MyPC01) and open MyFile.txt using a text editor (not NotePad) I can have teh file open on both systems. If a change is made to MyFile.txt on either PC, the other will get a notice that the file has changed and tge text editor app asks me if I want to reload the updated file. This is expected behavior. SCENARIO2: I am at my laptop (named MyLP01) connected to one drive and using a text editor app (note NotePad) I open MyFile.txt that is in OneDrive. Without closing the file or altering it, I activate teh VPN to my office and then I launch RDP (Remote Desktop) and connect my pc at work (MyWORKPC01). I then launch a text editor app (not NotePad) and open MyFile.txt located in OneDrive. When I try to open teh file after about 15-20 seconds I get an error msg that there is a problem accessing teh file. Why in scenario 1 can I have 1 file in OneDrive open from 2 different systems but I can't in scenario#2? Thanks6Views0likes0CommentsWhat do I need to connect OneDrive with non-Azure cloud using webhooks?
Currently, I have a Dropbox shared folder connected with AWS processing pipeline via webhooks. In this setup, every time a user authenticated by Dropbox makes a change in the Dropbox folder, an AWS Lambda is triggered to download the changed file to AWS infrastructure and do some computations there. Now, our partner requested Dropbox to be replaced with OneDrive, but to keep the existing AWS pipeline for processing. Thus, a question arises: what would be sufficient to connect existing AWS infrastructure with OneDrive shared folder (after every change to a file in OneDrive the file has to be sent to AWS)? What should I recommend to our partner for this use case? Especially: - should I recommend the "OneDrive for business" license? - is a stand-alone OneDrive license enough to utilize webhooks or are additional solutions like Azure needed? Please note that the relationship with the partner is a formal one, so I can't change my recommendation. Also, for unrelated reasons I am unable to set up my own account, prototype and check for myself, as I normally would. In the future I will be able to make additional recommendations when specification changes, so there isn't any problem with changing the license to a higher one later on. Research I've done so far: - I've read the [OneDrive API documentation on webhooks](https://learn.microsoft.com/en-us/onedrive/developer/rest-api/concepts/using-webhooks), but it is unclear to me what pre-requisites I need to set this up. Especially, is it supported on every license? - The onedrive-webhooks-aspnet repo on GitHub lists prerequisites, but since the README.md was updated 6 years ago, I am unsure how up-to-date it is. It advises to use OneDrive Personal registered with the Microsoft registration portal or OneDrive for Business with Microsoft Azure Active Directory and Office 365 app registration tool. The links do not work, though. - There is also a fairly recent guide on rollout.com on implementing webhooks in OneDrive, but it relies on Microsoft Graph. Is Microsoft Graph a necessity? Any additional links to resources on how to set this up are welcomed :)15Views0likes0CommentsStop OneDrive backing up photos
Hi, I have both a private and a business MS OneDrive account. I use a work PC and an Android phone (Samsung). My problem concern my private account. No matter what I do, OneDrive insists on backing up my private photos. I've tried MS online guides, but turning off the "backup photos and videos" doesn't work and my storage is constantly over the limit! Please help!21Views0likes0CommentsUploading files to OneDrive Personal via API fails when filename starts with "Windows"
Hi everyone, We've encountered a strange issue with our backup tool that affects random users. Files with names starting with "Windows" (e.g., Windows.gif) fail to upload to OneDrive Personal accounts, regardless of whether we're using: Simple Item Upload (PUT request) Resumable Item Upload (POST to create an upload session) Both methods return a 404 Not Found error. Details: Simple Upload Fails after the PUT completes. Resumable Upload Fails during the session creation call. No issues with filenames not starting with "Windows." A similar unresolved issue was reported here. Sample Request & Response: Simple Upload: PUT /v1.0/drive/items/{item-id}:/Windows.gif:/content Authorization: Bearer [token] Host: api.onedrive.com Response: HTTP/1.1 404 Not Found Payload: json { "error": { "code": "itemNotFound", "message": "Item does not exist" } } Resumable Upload: bash POST /v1.0/drive/items/{item-id}:/Windows.gif:/upload.createSession Authorization: Bearer [token] Content-Type: application/json Response: HTTP/1.1 404 Not Found Payload: json { "error": { "code": "itemNotFound", "message": "Item does not exist" } } Key Observations: Random Accounts Affected: Issue occurs inconsistently across different OneDrive Personal accounts. No Request ID: Failed responses lack request IDs, making tracing difficult. Inconsistent Reproduction: I can't reproduce it on my account, but my colleague can. Uploading the same file via the OneDrive web interface works fine. Trying to force URL-encode the filename in the request results in the same error Questions: Has anyone encountered this before? Could this be related to reserved keywords or API filtering rules? Any advice on debugging this further, given the lack of request IDs? Thanks.26Views0likes0CommentsTagging Photos Across Logins
I have photos in shared folders that I'm having problems tagging (or seeing tags) across different OneDrive accounts using the desktop app. I can add & see tags in some, but not others and vice versa. Some photos won't allow me to add tags at all. I have checked to make sure the files accept tags, tried multiple computers loggged into the same OneDrive account as well as those I've shared the file with and can't seem to find how/when I'm given the "permission" to add tags or not. Also odd that sometimes the tags show up across devices/accounts while others don't. Please help!10Views0likes0CommentsOneDrive Application keeps processing large number of files even if it is not syncing
We have a cloud file storage that we plan to migrate to SharePoint sites. One of the sites that I copied to test performance has approx. 550 GB and 320K files (total storage has 5.2 TB and 1.1 million files). I opened SharePoint site and clicked button to add to OneDrive but didn't click sync button. I want to see folder structure in Windows Explorer but don't want to download files. The problem is that OneDrive Windows app keeps processing forever consuming a lot of CPU and memory. Most of us work on laptops and OneDrive app seems to restarting processing every time laptop is started, so it can't finish during the day. My users want accept browsing files using a web browser, so client app is an only option for me. Am I hitting a limit of OneDrive app?49Views0likes0CommentsOneDrive link not working once shared
When sharing a video over OneDrive to someone else, once the other person gets the link...it just open the thumbnail and says wait for browser to start downloading..and it just stays this way for infinity. Workaround for this is to create folder, and share the folder instead. Tried same video over google drive it works without issue. This was a problem for me like a year ago. Is there some reason for this?47Views0likes0CommentsOneDrive: Autosave disabled when opening files from OneDrive folder
Hi, On my latest M4 MBP with latest MacOS, Autosave is disabled when I open shared Excel files from the (local) synchronized OneDrive folder. Excel asked to upload file to OneDrive. If I do this, it overwrites the existing file and Autosave gets enabled, but only until I open the file again from the (local) OneDrive folder. If I open files via Excel from the cloud, or from the OneDrive website, Autosave is enabled and stays enabled. Thet means the issue occurs only when I open files from the local synchronized OneDrive folder. Mac Version 15.2 and OneDrive version 24.226.1110.0004 OneDrive and all Microsoft APPS have full disk access I tried already unsuccessfully: Reseting OneDrive Uninstalling and Re-Installing OneDrive Deleting and Re-Installing Office365 OneDrive in "files on demand" and local download mode How can I fix it?69Views1like0CommentsUpload files to onedrive personal using python on non-interactive method
As part of my python project, I need to upload a file to onedrive personal folder non-interactive way. I have created an app registration in Azure provided below API permissions: Account Type: Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox) API Permissions: Python code: import requests # Replace with your details client_id = 'xxxxxx' client_secret = 'xxxxx' tenant_id = 'xxxxx' filename = 'C:/ABB_2025-01-13.csv' onedrive_folder = 'CloudOnly/test' user_id = 'c19d6ba9-e7d1-xxxxx-xxxxxx' # Get the access token url = f'https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token' data = { 'grant_type': 'client_credentials', 'client_id': client_id, 'client_secret': client_secret, 'scope': 'https://graph.microsoft.com/.default' } response = requests.post(url, data=data) token = response.json().get('access_token') # Upload the file to OneDrive headers = { 'Authorization': f'Bearer {token}', 'Content-Type': 'application/octet-stream' } file_content = open(filename, 'rb').read() upload_url = f'https://graph.microsoft.com/v1.0/users/{user_id}/drive/root:/{onedrive_folder}/{filename.split("/")[-1]}:/content' upload_response = requests.put(upload_url, headers=headers, data=file_content) if upload_response.status_code == 201: print('File uploaded successfully!') else: print('Error uploading file:', upload_response.json()) Error: Error uploading file: {'error': {'code': 'BadRequest', 'message': 'Tenant does not have a SPO license.', 'innerError': {'date': '2025-01-14T02:15:47', 'request-id': 'cf70193e-1723-44db-9f5e-xxxxxxx', 'client-request-id': 'cf70193e-1723-44db-9f5e-xxxxxxx'}}} How to resolve this ?62Views0likes0CommentsOneDrive is forcing users to login to upload content
All the settings appear to be correct so what is going on? As soon as they click the upload button they are forced to login and they don't have an MS account. This is not a cachine issue as I've tested it in EDGE with my gmail account and I never use edge This is for simply sharing a folder to others to contribute too.31Views0likes0CommentsOnedrive is asking users to sign in to upload
I have setup the proper security so I'm super confused on why an external user, non m365 is required to sign in to upload a file. After I setup the blow settings I share the link from the Copy Link button. it's not a caching issue. It's happening for me in edge which i never use and other users devices12Views0likes0CommentsCopilot prompts answers in word document in OneDrive
Hello I think I made a mistake tonight, I am discussing and learning a lot with Copilot and I don't have good memory. A while ago I started using Microsoft 365 and OneDrive to document some info because I use it for reference. I never had any problems before tonight. I was just playing with my last document in word. I then got a signal and a link to the Microsoft security hub. I did not have any bad intentions, did and do not plan to distribute or sell. The terms of use contract stipulates that we can use the resources for personal use. Hope to touch base Thank you43Views0likes0CommentsStop "Backup this document" prompt in Office
Every so often when I open a file in Excel or Word (perhaps about one in five), I get a prompt that says "Backup this document to OneDrive". I use Windows11 and Office365. I have every option for OneDrive backup turned off. I have it set for all files stored locally, all folders are off for backup in OneDrive settings. Anytime OneDrive asks me to back something up I dismiss it. How can I turn this nagging prompt off permanently?58Views0likes0CommentsOneDrive direct download link
Hi, We have tried to get direct download link or to access publicly shared drive file with Graph API . It seems that the the URL structure has changed as well as the API. The thing behind the API is that i cant access file though https://graph.microsoft.com/v1.0/shares/{sharedDriveItem-id} this endpoint since when i get the link and try to encode it to get sharedDriveItem-id the response is that the "The sharing link no longer exists, or you do not have permission to access it.". Anyone has any idea how to get direct download URL from initial public share URL give by someone? Thank you.90Views0likes0Commentspersonal account can't search files
hello,recently I found that personal account can't search files by GET /me/drive/root/search(q='{search-text}') . I am sure the target file exist in OneDrive. I can access it by GET /me/drive/root/children. is anyone know why and how can I solve it? here are my personal account testing result screenshot: the folder named "Documents" is exist. and the search result is a empty array also, here are communications records in Microsoft Q&A: https://learn.microsoft.com/zh-cn/answers/questions/2133894/onedrive-rest-api103Views0likes0Commentssome account can't upload files to Onedrive.
Some previously created accounts cannot upload files to OneDrive, but newly created accounts can. The uploadurl for the old account is“ https://my.microsoftpersonalcontent.com/personal........”,while the upload address for new account is “https://api.onedrive.com/rup/........”,and I didn't send the Authorization header and bearer token when i issue the POST or PUT call. I only send it when I issue the GETcall.is anyone know why and how can I solve it?95Views0likes0Comments
Events
Recent Blogs
- 2 MIN READJoin the OneDrive product team live each month on our monthly OneDrive Customer Office Hours to hear what's top of mind, get insights into roadmap updates, and dig into a special topic. Each call inc...Feb 10, 2025226Views0likes0Comments
- 1 MIN READIn the latest episode of the Sync Up podcast, hosts Stephen Rice and Arvind Mishra sit down with Sync superhero Gaia Carini to explore everything you need to know about OneDrive Sync. From fundamenta...Feb 06, 2025155Views0likes0Comments