microsoft-graph

Download files from personal OneDrive using Python

二次信任 提交于 2020-05-25 02:41:51
问题 I have a Python script that is running periodically on an AWS EC2 Ubuntu machine. This script reads data from some files and sometimes changes data in them. I want to download these files from OneDrive, do my own thing with them, and upload them back to OneDrive. I want this to be done automatically, without the need for a user to approve any login or credentials. I'm ok with doing it once (i.e. approving the login on the first run) but the rest has to run automatically, without asking ever

Download files from personal OneDrive using Python

不羁的心 提交于 2020-05-25 02:38:50
问题 I have a Python script that is running periodically on an AWS EC2 Ubuntu machine. This script reads data from some files and sometimes changes data in them. I want to download these files from OneDrive, do my own thing with them, and upload them back to OneDrive. I want this to be done automatically, without the need for a user to approve any login or credentials. I'm ok with doing it once (i.e. approving the login on the first run) but the rest has to run automatically, without asking ever

Download files from personal OneDrive using Python

此生再无相见时 提交于 2020-05-25 02:37:50
问题 I have a Python script that is running periodically on an AWS EC2 Ubuntu machine. This script reads data from some files and sometimes changes data in them. I want to download these files from OneDrive, do my own thing with them, and upload them back to OneDrive. I want this to be done automatically, without the need for a user to approve any login or credentials. I'm ok with doing it once (i.e. approving the login on the first run) but the rest has to run automatically, without asking ever

Combined Select and Filter MS-Graph query parameters not working as expected for signInActivity/lastSignInDateTime

回眸只為那壹抹淺笑 提交于 2020-05-24 07:11:12
问题 Query: https://graph.microsoft.com/beta/users?$select=id,displayName,signInActivity&$filter=signInActivity/lastSignInDateTime le 2020-03-01T00:00:00Z I am trying to query for users based on "lastSignInDateTime". When I do this , the response gives all the properties for every user returned. I then try to reduce this response by adding a "select" parameter to reduce the properties returned but it seems to have no effect. Is it possible to combine the "Filter" and "Select" query Parameter's?

The preferred replica is unavailable - Microsoft Graph [closed]

安稳与你 提交于 2020-05-17 08:49:16
问题 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 days ago . While creating user using microsoft graph ,it was working fine yesterday but now I am getting the error below. "error": { "code": "Directory_ReplicaUnavailable", "message": "The preferred replica is unavailable. Please retry your request.", "innerError": { "request-id": "19030bd0

MSAL.Net No account or login hint was passed to the AcquireTokenSilent call

别等时光非礼了梦想. 提交于 2020-05-17 07:06:27
问题 I have seen many same or similar questions, and tried all their answers if there was one, but none of those works for me. I'm using this example from Microsoft's Github account as my project base. It works well for just signing in users. The project has 1 WebApi, 1 Angular App. Then I followed this Microsoft example to add code to call Graph API. Here is the controller code: [Authorize] [Route("api/[controller]")] [ApiController] public class BillsController : ControllerBase { static readonly

Microsoft Graph API throwing exception

你。 提交于 2020-05-17 07:05:53
问题 since two days I get an exception calling : var usersInGroup = await graphClient.Groups[groupid].Members.Request().GetAsync(); { "error": { "code": "Authorization_RequestDenied", "message": "Insufficient privileges to complete the operation.", "innerError": { "request-id": "4069215a-945f-4cc0-abbf-132d703f55ae", "date": "2020-04-28T08:18:49" } } } This call always worked before and proper permissions are given and consented. Is there any known issue with this API / service ? Any easy way to

Microsoft Graph API throwing exception

荒凉一梦 提交于 2020-05-17 07:05:30
问题 since two days I get an exception calling : var usersInGroup = await graphClient.Groups[groupid].Members.Request().GetAsync(); { "error": { "code": "Authorization_RequestDenied", "message": "Insufficient privileges to complete the operation.", "innerError": { "request-id": "4069215a-945f-4cc0-abbf-132d703f55ae", "date": "2020-04-28T08:18:49" } } } This call always worked before and proper permissions are given and consented. Is there any known issue with this API / service ? Any easy way to

MSAL.Net No account or login hint was passed to the AcquireTokenSilent call

不羁的心 提交于 2020-05-17 07:05:19
问题 I have seen many same or similar questions, and tried all their answers if there was one, but none of those works for me. I'm using this example from Microsoft's Github account as my project base. It works well for just signing in users. The project has 1 WebApi, 1 Angular App. Then I followed this Microsoft example to add code to call Graph API. Here is the controller code: [Authorize] [Route("api/[controller]")] [ApiController] public class BillsController : ControllerBase { static readonly

MS-Graph request: insufficient privileges

大兔子大兔子 提交于 2020-05-17 06:27:06
问题 I'm having an issue with my .net core daemon-application recently. This worked fine at least a couple of days ago. My request goes to https://graph.microsoft.com/v1.0/users: var user = await client.Users[userPrincipalName] .Request() .Select("displayName,givenName,mail,mobilePhone,surname,userPrincipalName,id,onPremisesSecurityIdentifier,onPremisesDomainName,onPremisesSamAccountName") .GetAsync(); and returns the following error: { "error": { "code": "Authorization_RequestDenied", "message":