microsoft-graph-api

How to perform a resumable Upload to a SharePoint Site (Not Root) Subfolder using MS Graph API

戏子无情 提交于 2021-02-05 11:35:09
问题 Documentation: https://docs.microsoft.com/en-us/graph/api/driveitem-createuploadsession?view=graph-rest-1.0 I am able to get the Drive ID of the sub site using the sites/domain/drives api. Using this and the driveId/root/children I can confirm several folders on this drive. If I use the API POST /drives/{driveId}/items/{itemId}/createUploadSession replacing the driveId with the drive ID and the itemId with the folder ID I get the following error { "error": { "code": "nameAlreadyExists",

Can't get events with open extension in Microsoft Graph API

为君一笑 提交于 2021-02-05 09:23:09
问题 I created an event through a shared mailbox in Graph API. https://graph.microsoft.com/v1.0/users/{shared-user-id}/calendars/{shared-calendar-id}/events { "subject": "New Event Test", "body": { "contentType": "HTML", "content": "Mail FLow Test" }, "start": { "dateTime": "2021-01-29T12:00:00", "timeZone": "Eastern Standard Time" }, "end": { "dateTime": "2021-01-30T14:00:00", "timeZone": "Eastern Standard Time" }, "attendees": [ { "emailAddress": { "address":"calendar@contoso.com", "name":

The collection type 'Microsoft.Graph.IGraphServiceUsersCollectionPage' on 'Microsoft.Graph.GraphServiceUsersCollectionResponse.Value' is not supported

妖精的绣舞 提交于 2021-02-05 08:10:55
问题 I am trying to get list of Azure AD B2C users based on code sample provided Here. GraphServiceClient graphClient = new GraphServiceClient( authProvider ); var users = await graphClient.Users .Request() .GetAsync(); Which is loading users as expected when I try with .Net core console application or .Net core web application. But I need to load users in .net core class library project. (Azure function project to be specific). But same code in .net core class library throws below expection while

No access token returned for AD B2C user when requesting Microsoft Graph delegated permissions

别来无恙 提交于 2021-02-04 08:14:25
问题 User Story: Given an ADB2C User, with Global Administrator role and an oid of 01234567-901a-bcde-f012-3456789abcde (not a real oid), I want to be able to log in as that user and retrieve the user profile from "https://graph.microsoft.com/beta/me" or "https://graph.microsoft.com/beta/users/01234567-901a-bcde-f012-3456789abcde". Both are listed in the documentation as valid endpoints for B2C. It's not working: In an app registration with only Microsoft Graph permission scopes assigned, I used

Can't create an event with extended data

喜夏-厌秋 提交于 2021-01-29 20:40:37
问题 I am trying to create a calendar event with extended data using Microsoft Graph API.(actually, I am trying to converting the existing open extension to schema extension since I couldn't filter the non-id extended value of the open extension.) Before my try, I have already created my schema extension successfully and creating a calendar event with the schema extension responses an error code "BadRequest" and message "Requests must contain extension changes exclusively". I tried to do this by

getSchedule return no odata.nextlink

梦想与她 提交于 2021-01-29 18:25:21
问题 sorry I'm new to MS Graph. I'm working on a app to extract meeting history data for past hour/day/week/month for my company. first I start with getSchedule endpoint. I found I never see odata.nextlink in the response, even I make the large time range, 60 days. still no odata.nextlink. my quesion is: I don't have enough meeting? if yes, how many meetings will cause odata.nextlink? is it possible, getSchedule will never return odata.nextlink? I also try add top=2, (v1.0/me/calendar/getSchedule?

Unable to get MIME version of a Message using $value

送分小仙女□ 提交于 2021-01-29 16:27:19
问题 I am unable to get MIME for a message using $value like specified in the documentation. How to get MIME? OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .header("Authorization", "Bearer " + accessToken) .url("https://graph.microsoft.com/v1.0/me/messages/k4ZDQ5LTgzMTYtNGZhYS04ZTU3LWZhMjFmZmUzNmE1YwBGAAAAAABzUENX1K4kR6h6KAAA7ENoUb5BySZFX6KemUxNwAAAv_a5nAAA=/?value") .build(); Response response = null; String body; try { response = client.newCall(request)

Microsoft Update DriveItem API throwing locked exception if the file is open in desktop

馋奶兔 提交于 2021-01-29 16:24:59
问题 1.This is the behavior I am observing when I use Update DriveItem graph API to update my file name.https://docs.microsoft.com/en-us/graph/api/driveitem-update?view=graph-rest-1.0&tabs=http. 2.If the file is open in my office desktop document it throws locked exception. If i close the file renaming works fine. 3.I tested same in sharepoint their UI ,I am able to rename the file.But through graph API it throws locked exception if file is open. Is this error expected ?. How can I get around this

Can't create a schema extension

扶醉桌前 提交于 2021-01-29 15:41:29
问题 I am trying to create a schema extension in Microsoft Graph API. But it has failed with error message "Property type is invalid for target types". POST https://graph.microsoft.com/v1.0/schemaExtensions Content-type: application/json { "id":"extendedData", "description": "Graph Learn training courses extensions", "targetTypes": [ "Event" ], "properties": [ { "name": "courseId", "type": "Integer" }, { "name": "materialId", "type": "Integer" }, { "name": "courseType", "type": "String" } ] }

Shouldn't members be part of list of deleted groups in Microsoft Graph AD

不羁岁月 提交于 2021-01-29 15:26:37
问题 I'm using the Microsoft Graph API to sync user details. When a group is deleted, I need to get all its members in order to update them accordingly. Therefor, I track for group changes, and when a group is being deleted, I'm trying to fetch all its members with the function List deleted items. I'm using GET https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.group?$select=id,members,displayName&$filter=id eq '53cb5660-d5ad-4610-b38b-ebde71e6c49b' The function returns only