microsoft-graph-api

Microsoft Graph API in particular active directory OU

对着背影说爱祢 提交于 2020-08-11 02:00:20
问题 I can find all users with below graph api URL https://graph.microsoft.com/v1.0/users?$top=500 But it give response with all users of the organization, in which it come with certain service account users. We have all user in some particular OU some thing like this DC=domainName,DC=local,OU=domainName-HO So I want to know that is there any way to find users from particular OU 回答1: Based on Custom OU considerations and limitations, user accounts, groups, service accounts, and computer objects

Can't access one drive through graph API using Azure app

六眼飞鱼酱① 提交于 2020-08-10 20:28:10
问题 I am referring this medium blog and the official document from Microsoft to access one drive through graph API using the Azure app. I am using the following node.js code to get access token for Microsoft Graph API: const axios = require('axios'); const qs = require('qs'); const postData = { client_id: client_id from azure app, scope: 'https://graph.microsoft.com/.default', client_secret: app_secret from azure app grant_type: 'client_credentials' }; axios.defaults.headers.post['Content-Type']

Detect if file is open and being edited

[亡魂溺海] 提交于 2020-08-10 16:41:02
问题 Is there a way to detect within a 365 Addin, if a file is currently being edited before deleting from OneDrive? I checked documentations for Microsoft Graph, Office Dev and OneDrive but didn't find anything. If there currently isn't way, is Microsoft considering to make a call or service for the future? Thank you, 回答1: unfortunately there isn't a way to do this right now. However, if a file is currently being edited, then DELETE will return an error, since the file is effectively locked by

Detect if file is open and being edited

江枫思渺然 提交于 2020-08-10 16:39:25
问题 Is there a way to detect within a 365 Addin, if a file is currently being edited before deleting from OneDrive? I checked documentations for Microsoft Graph, Office Dev and OneDrive but didn't find anything. If there currently isn't way, is Microsoft considering to make a call or service for the future? Thank you, 回答1: unfortunately there isn't a way to do this right now. However, if a file is currently being edited, then DELETE will return an error, since the file is effectively locked by

C# to find if a user was migrated from Windows Server AD to Microsoft Azure

大兔子大兔子 提交于 2020-08-10 01:16:45
问题 In my personal Azure account, I migrated some users from a Windows Server AD , and some were created directly in Azure AD , and some users came from Microsoft Personal accounts. I have been able to display these users in a Windows Desktop app using Microsoft Graph - similar to what we see in Azure Portal (as shown below). Moreover, as shown below, the Source of user list in Azure portal tells you whether a user was migrated from Windows Server AD or not. But I have not been able to find a way

C# to find if a user was migrated from Windows Server AD to Microsoft Azure

喜欢而已 提交于 2020-08-10 01:16:09
问题 In my personal Azure account, I migrated some users from a Windows Server AD , and some were created directly in Azure AD , and some users came from Microsoft Personal accounts. I have been able to display these users in a Windows Desktop app using Microsoft Graph - similar to what we see in Azure Portal (as shown below). Moreover, as shown below, the Source of user list in Azure portal tells you whether a user was migrated from Windows Server AD or not. But I have not been able to find a way

C# to find if a user was migrated from Windows Server AD to Microsoft Azure

送分小仙女□ 提交于 2020-08-10 01:13:26
问题 In my personal Azure account, I migrated some users from a Windows Server AD , and some were created directly in Azure AD , and some users came from Microsoft Personal accounts. I have been able to display these users in a Windows Desktop app using Microsoft Graph - similar to what we see in Azure Portal (as shown below). Moreover, as shown below, the Source of user list in Azure portal tells you whether a user was migrated from Windows Server AD or not. But I have not been able to find a way

Uploading a File to SharePoint Online using Microsoft Graph API

我怕爱的太早我们不能终老 提交于 2020-08-09 09:13:48
问题 I'm really new to Microsoft Graph API, I created a script using powershell to get reports from Microsoft 365 and it is being saved on my drive ( c:\temp\reports.xlsx ). After it is being saved i wish to upload it to SharePoint online. On reading the docs, Microsoft says to do the following request, PUT /sites/{site-id}/drive/items/{parent-id}:/{filename}:/content I then tried to apply it to my use case and this was my request: function RestMethod { Param ( [parameter(Mandatory = $true)]

Uploading a File to SharePoint Online using Microsoft Graph API

时光毁灭记忆、已成空白 提交于 2020-08-09 09:13:21
问题 I'm really new to Microsoft Graph API, I created a script using powershell to get reports from Microsoft 365 and it is being saved on my drive ( c:\temp\reports.xlsx ). After it is being saved i wish to upload it to SharePoint online. On reading the docs, Microsoft says to do the following request, PUT /sites/{site-id}/drive/items/{parent-id}:/{filename}:/content I then tried to apply it to my use case and this was my request: function RestMethod { Param ( [parameter(Mandatory = $true)]

Create a 'event as online meeting' or only the onlineMeeting using Microsoft Graph API

荒凉一梦 提交于 2020-08-06 12:45:13
问题 Any user who logged into our system (IdentityServer as Auth) under a specific tenant should be able to create an event as an online meeting (MS Teams). We followed Build ASP.NET Core MVC apps with Microsoft Graph and Create and enable an event as an online meeting to create an application that authenticates an AD user of an organization and allow him to create an event as an online meeting. We are able to implement it successfully and was able to create the event as an online meeting. But the