Forum Widgets
Latest Discussions
sharedWithMe returns only one item
A request from a standalone application to the https://learn.microsoft.com/en-us/graph/api/drive-sharedwithme endpoint returns only one item. Scopes used for authorization are: files.readwrite.all, group.readwrite.all, sites.readwrite.all, offline_access user.read When calling the same endpoint https://developer.microsoft.com/en-us/graph/graph-explorer, all shared items are returned. Result from application: { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.driveItem)", "value": [ { "createdDateTime": "2025-11-13T18:48:46Z", "id": "700DF30854FEF749!sd0cb731281c141acb1bf78fed133f933", "lastModifiedDateTime": "2025-11-13T18:48:46Z", "name": "saĝa-simio", "webUrl": "https://onedrive.live.com?cid=700df30854fef749&id=700DF30854FEF749!sd0cb731281c141acb1bf78fed133f933", "size": 0, "createdBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Saĝa Simio" } }, "lastModifiedBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Saĝa Simio" } }, "fileSystemInfo": { } Note that only one item is returned. Result from Graph Explorer: { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.driveItem)", "@microsoft.graph.tips": "Use $select to choose only the properties your app needs, as this can lead to performance improvements. For example: GET me/drive/microsoft.graph.sharedWithMe?$select=audio,bundle", "value": [ { "createdDateTime": "2025-11-13T18:48:46Z", "id": "700DF30854FEF749!sd0cb731281c141acb1bf78fed133f933", "lastModifiedDateTime": "2025-11-13T18:48:46Z", "name": "saĝa-simio", "webUrl": "https://onedrive.live.com?cid=700df30854fef749&id=700DF30854FEF749!sd0cb731281c141acb1bf78fed133f933", "size": 0, "createdBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Saĝa Simio" } }, "lastModifiedBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Saĝa Simio" } }, "fileSystemInfo": { "createdDateTime": "2025-11-13T18:48:46Z", "lastModifiedDateTime": "2025-11-13T18:48:46Z" }, "folder": { "childCount": 1, "view": {} }, "remoteItem": { "createdDateTime": "2025-11-13T18:48:46Z", "id": "700DF30854FEF749!sd0cb731281c141acb1bf78fed133f933", "lastModifiedDateTime": "2025-11-13T18:48:46Z", "name": "saĝa-simio", "size": 0, "createdBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Saĝa Simio" } }, "fileSystemInfo": { "createdDateTime": "2025-11-13T18:48:46Z", "lastModifiedDateTime": "2025-11-13T18:48:46Z" }, "folder": { "childCount": 1, "view": {} }, "lastModifiedBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Saĝa Simio" } }, "parentReference": { "driveType": "personal", "driveId": "700df30854fef749" }, "shared": { "scope": "users", "sharedDateTime": "2025-11-13T19:16:19Z", "owner": { "user": { "id": "700df30854fef749", "displayName": "Saĝa Simio" } }, "sharedBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Saĝa Simio" } } }, "sharepointIds": { "listId": "a5aff78d-98ee-4b34-b35b-f4fe365ebd74", "listItemId": "184", "listItemUniqueId": "d0cb7312-81c1-41ac-b1bf-78fed133f933", "siteId": "87dbe7ee-ae0c-4854-82e7-d56d982fef54", "siteUrl": "https://my.microsoftpersonalcontent.com/personal/700df30854fef749", "webId": "9d8b91c3-b0b9-45d1-83e4-17babde0d1dc" } } }, { "createdDateTime": "2025-11-13T18:24:59Z", "id": "D26CADA368C1131F!116", "lastModifiedDateTime": "2025-11-13T18:24:59Z", "name": "Beastie", "webUrl": "https://onedrive.live.com?cid=d26cada368c1131f&id=D26CADA368C1131F!116", "size": 0, "createdBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Faerie Graceful" } }, "lastModifiedBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Faerie Graceful" } }, "fileSystemInfo": { "createdDateTime": "2025-11-13T18:24:59Z", "lastModifiedDateTime": "2025-11-13T18:24:59Z" }, "folder": { "childCount": 1, "view": {} }, "remoteItem": { "createdDateTime": "2025-11-13T18:24:59Z", "id": "D26CADA368C1131F!116", "lastModifiedDateTime": "2025-11-13T18:24:59Z", "name": "Beastie", "size": 0, "createdBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Faerie Graceful" } }, "fileSystemInfo": { "createdDateTime": "2025-11-13T18:24:59Z", "lastModifiedDateTime": "2025-11-13T18:24:59Z" }, "folder": { "childCount": 1, "view": {} }, "lastModifiedBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Faerie Graceful" } }, "parentReference": { "driveType": "personal", "driveId": "d26cada368c1131f" }, "shared": { "scope": "users", "sharedDateTime": "2025-11-13T18:41:30Z", "owner": { "user": { "id": "d26cada368c1131f", "displayName": "Faerie Graceful" } }, "sharedBy": { "user": { "email": "email address removed for privacy reasons", "id": "email address removed for privacy reasons", "displayName": "Faerie Graceful" } } }, "sharepointIds": { "listId": "5d31fd1e-38af-4117-b637-c1a0f7d5ca95", "listItemId": "4", "listItemUniqueId": "68c1131f-ada3-206c-80d2-740000000000", "siteId": "74111012-f9e7-4940-ad60-5e53a21e2d3c", "siteUrl": "https://my.microsoftpersonalcontent.com/personal/d26cada368c1131f", "webId": "f1ea2ab8-b5ee-4c93-8ce2-6c12700c226a" } } } ] } Any tips or suggestions are welcome.josuegomesDec 19, 2025Copper Contributor34Views0likes0CommentsCan a mobile app programmatically trigger the OneDrive mobile app?
Hi, I am developing a native mobile application (Android and iOS) and I would like to clarify what is officially supported when interacting with OneDrive on mobile devices. Specifically, I would like to know: - Is there any supported way (Android Intent, iOS URL scheme, or similar) for a third-party mobile app to programmatically trigger the OneDrive mobile app to create folders or upload files? - Or is Microsoft Graph API the only supported approach to create folders and upload files to OneDrive / SharePoint from a mobile application? I am looking for an official clarification on the supported approach. Thank you.filippodevMobileDec 19, 2025Copper Contributor13Views0likes0CommentsSize 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!fsdevFeb 11, 2025Copper Contributor62Views0likes0CommentsWhat 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 :)pawelkamFeb 05, 2025Copper Contributor117Views0likes0CommentsUpload 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 ?acrJan 14, 2025Copper Contributor199Views0likes0Commentspersonal 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-apiharrison222Dec 23, 2024Copper Contributor160Views0likes0Commentssome 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?underwoodDec 18, 2024Copper Contributor160Views0likes0CommentsApp Folder is being named "Graph"
There is an issue where the App Folder is being named "Graph" instead of the intended Application Name for some users, specifically those uploading to "my.microsoftpersonalcontent.com." Scenario: 1 A user logs in to the application and OneDrive via OAuth. 2 The user uploads a file to OneDrive. Expected Outcome: The file should be uploaded to /apps/**MyApp**/SomeFile.txt Actual Outcome: The file is uploaded to /apps/**Graph**/SomeFile.txt The upload process utilizes the following special URL: OneDrive API: Get Special Folder https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/drive_get_specialfolder?view=odsp-graph-online The request is made using: POST https://graph.microsoft.com/v1.0/me/drive/special/approot:/SomeFile.txt:/createUploadSession This returns a URL for posting the upload: https://my.microsoftpersonalcontent.com/personal/XXXXXXX/_api/v2.0/drive/items/YYYYYYYY/uploadSession?guid='XXXXX4-4YYYY-bCCCDDDDDDD'&overwrite=True&rename=False&dc=0&tempauth=d3f4f4f4f4f....DavidLilleyDec 13, 2024Copper Contributor145Views1like0CommentsFile handler configuration does not update
Hi team, We recently had an integration with Microsoft file handler. During the deployment of the application, we encountered some issues, so we updated the file handler configuration via the manifest file. Some users who installed our application still see the old file handler configuration and are experiencing problems because of it. They want to either update it to the latest configuration or remove it completely so they can continue their work normally. We did try to guide them to reset the file handler cache as in: https://learn.microsoft.com/en-us/onedrive/developer/file-handlers/reset-cache?view=odsp-graph-online But seems like only some of them got the updated config, while the rest keep getting the old one, even after 1-2 weeks. Do you have any advice on how to completely resolve this issue?lumin_adminNov 29, 2024Copper Contributor117Views0likes0CommentsOnedrive Share Popup box
We have deployed the App Locker policy via Active Directory Group Policy and have whitelisted all OneDrive paths and applications as publishers. Everything seems to be working, except for the "Share" pop-up box, which remains empty. Please let me know which application and path need to whitelist for resolve this concern. https://filestore.community.support.microsoft.com/api/images/84390ebf-d302-4015-8ff6-723ae2b00af1?upload=true&fud_access=hC1SxZhn7m%2FZQJkOIiOVstu10yTQgXS4A%2FDBzZTg8nbaCgIogkrcDydMeI5Y4za2dOqDdWtsG2JNS3E35V60i9TiGHR7STMpJHheeXuDvO8nwjUlqCBHhJ0NDvuYN7OSsi8XAMNbcvjY8Jl35xJIDMlQpdAs%2BPBtE76aaH2SBTIc9TGMou9fME3wm4Fqdf9vzuQKLKVO33xuHRgsIbZ%2FYzoQbWXQYwmFDCnjYobtz56h1yJVfh%2F6IvKz8JfYTr0D4M7r6NM4Ck%2FeDzsAJjWw3X66fFgOTsXjM8id6zzQKbU4dHgHMt3TQBDnOu%2BayTc64rPs9aG4UXMNg8o9RDP2QZ4Gu%2BKz0cZbCIWWzkqkxYY9Uk%2FmAOooFDe39DEN23Goa8lH3RZ%2FHp3F558qgCwe31F7EZkK5OUD9g1thuXoSYE%3DsachinametaNov 06, 2024Copper Contributor52Views0likes0Comments