microsoft-graph

Microsoft Graph API: Authorization_IdentityNotFound

☆樱花仙子☆ 提交于 2020-06-26 06:31:52
问题 I'm following the Get access without a user guide to write a Python script that will call Microsoft Graph. This script will be scheduled from cron so it cannot get admin consent (therefore authorize using Client Credentials). I am able to successfully obtain a token using this call: request_url = "https://login.microsoftonline.com/mytenant.onmicrosoft.com/oauth2/v2.0/token" data = { 'Host' : 'login.microsoftonline.com', 'Content-Type' : 'application/x-www-form-urlencoded', 'client_id' : 'my

ErrorGroupsAccessDenied when setting hideFromAddressLists or hideFromOutlookClients

点点圈 提交于 2020-06-23 08:49:27
问题 I have been trying to set the following values on a group using graph using the beta API: { "hideFromOutlookClients": true, "hideFromAddressLists": true } However, I get the following error: { "code": "ErrorGroupsAccessDenied", "message": "User does not have permissions to execute this action." } The application does have the required permissions for updating a Group, in fact, updating a group's description works just fine . These two properties were added a few months back but they seem to

ErrorGroupsAccessDenied when setting hideFromAddressLists or hideFromOutlookClients

给你一囗甜甜゛ 提交于 2020-06-23 08:49:27
问题 I have been trying to set the following values on a group using graph using the beta API: { "hideFromOutlookClients": true, "hideFromAddressLists": true } However, I get the following error: { "code": "ErrorGroupsAccessDenied", "message": "User does not have permissions to execute this action." } The application does have the required permissions for updating a Group, in fact, updating a group's description works just fine . These two properties were added a few months back but they seem to

How do I update the value of Person or Group columns in SharePoint lists using the Microsoft Graph API?

眉间皱痕 提交于 2020-06-22 12:43:46
问题 My situation I am using the Microsoft Graph API (Beta) to update SharePoint ListItems. However, I am failing to change the value of a 'Person or Group' column. The column has the attribute 'Allow multiple selections' and accepts both persons and groups. This is how it looks like as part of the ListItem columnSet: { "AssignedTo": [ { "Email": "user@domain.com", "LookupId": 123, "LookupValue": "User Name" } ] } What works Updating the value of columns other than 'Person or Group' is working

get group members from azure ad via microsoft graph

懵懂的女人 提交于 2020-06-22 04:02:40
问题 I am working in asp.net application Authenticate with external identity provider (Azure Active Directory) I want to get group members from azure ad via microsoft graph How can I do that ?? 回答1: Seems You are trying to get all group members from a specific group. Just Get the group Id that is Object Id on azure portal. See the below screen shot. Code Snippet : You could try following code snippet which work fine as expected. //Token Request End Point string tokenUrl = $"https://login

Sharepoint Graph API strange behaviour while trying to get download link for a file

大兔子大兔子 提交于 2020-06-17 15:53:09
问题 I'm trying to get file content. When I'm calling GET /sites/{site-id}/drive/root:/{item-path} Response contains all information about the file, but no @microsoft.graph.downloadUrl field is returned. { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('domain.sharepoint.com%2Ccc252463-cda2-3eb2-b15e-8836305f1420%2Cc0db7f82-b16f-4fe5-9885-7e434b11e5b8')/drives('b%21k3l2zKLNsk50Log2MF7UIBtTYFV32M5EtW4ZTyYF38gyZs2y-wOfSL0tPWbYys-4')/root/$entity", "cTag": "\"c:{0e8182ec-5ee9

Microsoft Graph API groups delta never returns deltaLink, which is causing infinite loop (with nextLink)

こ雲淡風輕ζ 提交于 2020-06-17 14:22:06
问题 I'm working with the Microsoft Graph API I'm using the Delta API for groups. I create one delta request per group (I'm not tracking all groups, only specific ones). I have checked this question and read the documentation mentioned. And I have read the issue on GitHub here I'm working against the same tenant while developing for few weeks with the delta response. Besides once, it always worked almost as expected. When I made a delta request I got the nextLink, I followed it until I got the

Graph Pagination in Logic Apps

ぐ巨炮叔叔 提交于 2020-06-17 09:56:05
问题 I'm trying to fetch all users from a specific group via an HTTP connector, a registered app, and Microsoft Graph. The registered app has Directory.Read.All permissions. My idea is that I'm calling the nextLink as long as it's there while appending all of the fetched users' userPrincipalName to an array eventually filling the array with all users of the group. My Logic App looks like this: Unfortunately, I'm just 1 reputation short of posting images, please forgive. The 3 links should provide

Cannot add to another users calendar

*爱你&永不变心* 提交于 2020-06-17 04:41:46
问题 I am attempting to allow a user add items to the calendars of other users. A user logs in and get the token as follows const AUTHORIZE_ENDPOINT = '/oauth2/v2.0/authorize'; const TOKEN_ENDPOINT = '/oauth2/v2.0/token'; const SCOPES = 'profile openid email User.Read Calendars.ReadWrite Calendars.Read Calendars.Read.Shared Calendars.ReadWrite Calendars.ReadWrite.Shared'; $graph = new Graph(); $graph->setAccessToken($token); $response = $graph->createRequest("GET", "/me")->setReturnType(Model\User

Getting Events from Calendar using C# and Microsoft Graph SDK

自古美人都是妖i 提交于 2020-06-16 17:24:49
问题 I'm trying to develop a console app to list, remove and add events to a specific user's calendar. I'm developing a business process. I'm starting by listing events. Calendar cal = client .Users["UserName@CompanyName.com"] .Calendars["AAMkAGIzZDM4O...."] .Request() .GetAsync() .Result; I get the correct calendar back but the Events collection is null. There are 13 events in the calendar. I have Calendar Read/Write permissions. Any ideas? 回答1: I don't have an environment to test the c# Graph