onedrive

Access AD users OneDrive for Businesses through Microsoft Graph in app-mode

≡放荡痞女 提交于 2019-12-08 06:56:54
问题 Is it possible to use the Microsoft Graph API to access a users OneDrive for Business folders and files when running in app-mode? I've successfully configured the app in Azure AD (with certificate, etc.), I've been able to get bearer token and I've also successfully requested data from certain endpoints. However: I am are not able to work with the users OneDrive for Business folders or files. In other cases I’ve been using a service account (a user account with full administrative privileges)

Microsoft Graph API - Read Office 365 SharePoint List and Pull Data (Images)

偶尔善良 提交于 2019-12-08 05:59:23
问题 Refrencing the following post: Microsoft Graph API - Office 365 Access SharePoint Nested Folder Items I'm able to get a list of Images via the Graph API. I have an MVC Azure App where I'm making these Graph API calls. However when I try to access the Image via the webUrl property, I get access denied. I've been able to get around this by using the @microsoft.graph.downloadUrl property which I can access, download it via HttpClient convert to Byte Array and transform into a Thumbnail. However

Microsoft Graph API - Office 365 Access SharePoint Nested Folder Items

拟墨画扇 提交于 2019-12-08 05:37:58
问题 I was shared access to a SharePoint folder on our Office 365 site. The folder is deeply nested. Something like: http://mycorp.sharepoint.com Our Docs > Marketing > Company > Images Inside the "Images" folder are a list of JPGs. How can I use the Graph API to access this deeply nested folder? I've tried something like: https://graph.microsoft.com/v1.0/sites/mycorp.sharepoint.com:/Documents/Marketing/Company/Images:/Items I feel I'm close but I'm just not sure how to access the nested folder

How to use one drive file picker in browser?

杀马特。学长 韩版系。学妹 提交于 2019-12-08 04:46:25
问题 I need to integrate One Driver file picker in my website. I am using this js lib to do the task. <script type="text/javascript" src="//js.live.net/v5.0/wl.js"></script> The code I wrote is WL.init({ client_id: "000000004C1xxxxx", redirect_uri: 'https://xxx.net/' }); WL.login({ scope: "wl.skydrive wl.signin" }).then( function(response) { WL.fileDialog({ mode: "open", select: "multi" }).then( function (response) { }, function (responseFailed) { } ); }, function(response) { log("Failed to

Upload to Onedrive with C# using Graph API

别来无恙 提交于 2019-12-08 04:20:01
问题 I am trying to upload a file to Onedrive using RestSharp and Graph API. Basically I want to upload an Excel file. However, even the file saves, there is problem with the content. I am using: https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/item_uploadcontent using the code: string newToken = "bearer ourtoken"; var client = new RestClient("https://xxx-my.sharepoint.com/_api/v2.0/"+ oneDrivePath + Path.GetFileName(filePathWithName) + ":/content"); var request = new RestRequest

Create multiple OneDrive drives

非 Y 不嫁゛ 提交于 2019-12-08 01:44:56
问题 The new(ish) OneDrive API docs talk about multiple drives: /drives List Drives available to the authenticated user. However I only have a single (default) drive for my account. I can't find any info about how to create additional drives, or whether this is even possible at the moment. Maybe you get the option somewhere if you buy extra storage or use OneDrive for Business? Having said that this says: The /drives/{drive-id} syntax is not supported for OneDrive for Business. You should always

One Drive JS File Picker : error in window's opener

独自空忆成欢 提交于 2019-12-07 22:53:47
问题 I am trying to implement the One Drive File Picker as instructed The One Drive window opens fine and you select a file but then doesn't return to my site, i get a continuous waiting spinner. If i look in the Chrome console I am seeing multiple lines of the following [OneDriveSDK] error in window's opener, pop up will close. Array[1] And then at the end Uncaught RangeError: Maximum call stack size exceeded OneDrive.js:2 My Code <button id="onedrive">Open from OneDrive</button> <script type=

SkyDrive API - accessing documents

て烟熏妆下的殇ゞ 提交于 2019-12-07 19:26:26
Not a long time that SkyDrive API is available. The scopes to access are here . But how to access documents on SkyDrive? What scope to use? This blog post about Windows 8 and Skydrive contains some information about wl.skydrive for accessing and wl.skydrive_update for uploading data. Also the SkyPad application uses these, so it might be worth a try: <live:SignInButton x:Name="signInBtn" Scopes="wl.signin wl.skydrive_update" Margin="0,0,0,0" /> 来源: https://stackoverflow.com/questions/8108126/skydrive-api-accessing-documents

Microsoft Graph CSharp SDK and OneDrive for Business with a Service/Daemon application - Quota facet returns null

我与影子孤独终老i 提交于 2019-12-07 11:28:27
I am coding against Microsoft Graph CSharp SDK for OneDrive for Business and I am trying to pull back data on a specific User and request back Quota information. My request: var user = await graphServiceClient.Users["test@test.onmicrosoft.com"].Request().GetAsync(); var drive = await graphServiceClient.Drives["test@test.onmicrosoft.com"].Request().GetAsync(); var quotaTotal = drive.Quota.Used; var displayName = user.DisplayName; var driveType = drive.DriveType; var driveId = drive.Id; The problem - the data that is returned is all null . Does the Microsoft Graph SDK have support to pull back

How to authorize service to use Microsoft Graph user account without user interaction?

六月ゝ 毕业季﹏ 提交于 2019-12-07 08:55:14
问题 I want my server application to interact with it's own Excel files using Microsoft Graph. That is, the files belong to the application, not a particular user of the application. I have registered an application with Azure ID and granted "Have full access to all files user can access" permission for Microsoft Graph. I am trying to use OAuth Resource Owner Password Credentials Grant. I can get an authorization token like this: POST https://login.microsoftonline.com/common/oauth2/token Content