microsoft-graph-sdks

How to get admin roles that I am a member of, from Microsoft Graph using .Net Client SDK?

天涯浪子 提交于 2019-12-11 04:38:03
问题 I know how to get member directory roles filtering by type using the rest query below: https://graph.microsoft.com/v1.0/me/memberOf/$/microsoft.graph.directoryRole So the response from MS Graph api only contains directoryRole objects. Not sure how this can be done using the MS Graph .Net client SDK as we do not specify any OData keyword like Select or Filter in the actual Rest request. Note that I do not want to call just memberOf and filter directoryRole type responses in memory on client

.NET Graph SDK Updating Sharepoint Online List Item Values

旧时模样 提交于 2019-12-11 04:28:42
问题 I'm trying to add values to a custom column on a list item after uploading the list item to the list. I can get the item into the list, and I can query the list and get back the item's data, but when I try to add the data for the extra field I get the following Microsoft.SharePoint.Client.InvalidClientQueryException error: A value without a type name was found and no expected type is available. When the model is specified, each value in the payload must have a type which can be either

Microsoft Graph only returning the first 100 Users

安稳与你 提交于 2019-12-11 03:35:46
问题 I have the below code which returns all users based on a filter. The problem is it only returns 100 users but I know there are a lot more. private List<User> GetUsersFromGraph() { if (_graphAPIConnectionDetails == null) ReadParametersFromXML(); if (graphServiceClient == null) graphServiceClient = CreateGraphServiceClient(); var users = graphServiceClient .Users .Request() .Filter(_graphAPIConnectionDetails.UserFilter) .Select(_graphAPIConnectionDetails.UserAttributes) .GetAsync() .Result

SingleValueExtendedProperty is propagated only when room accept the event

假如想象 提交于 2019-12-08 07:23:06
问题 I'm doing some code that book meeting rooms integrated with Outlook Office 365. I'm using Microsoft Graph to do that and my solution requires some extended properties that are used in many functionalities. My problem is: When I update the extended properties of some event in the owner's calendar, the change doesn't propagate to the room copy of the event. The extended property is propagated only when the room needs to accept the event again (e.g. start date changes). Piece of code I'm using

add member in Outlook using Java Microsoft graph SDK

我的梦境 提交于 2019-12-08 07:18:52
问题 I'm trying to add user to a group in outlook using Microsoft Graph API in java. I've referred developer's guide : https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/group_post_members for adding user. However to achieve this I'm using Microsoft graph java sdk and I need to add the json object with member Id in the group in java, like POST https://graph.microsoft.com/v1.0/groups/{id}/members/$ref Content-type: application/json Content-length: 30 { "@odata.id": "https:/

Microsoft Graph SDK .NET get events in range

陌路散爱 提交于 2019-12-08 03:30:58
问题 I tried to get all the events in a certain range using the following code DateTime dateStart = DateTime.Parse("2018-07-20T11:00:00"), dateEnd = dateStart.AddDays(1); List<QueryOption> options = new List<QueryOption>() { new QueryOption("startDateTime", dateStart.ToUniversalTime().ToString()), new QueryOption("endDateTime", dateEnd.ToUniversalTime().ToString()) }; var eventsInRange = await graphClient.Me.Calendar.Events.Request(options).GetAsync(); But it returns the events in all history, not

SingleValueExtendedProperty is propagated only when room accept the event

孤者浪人 提交于 2019-12-06 18:44:25
I'm doing some code that book meeting rooms integrated with Outlook Office 365. I'm using Microsoft Graph to do that and my solution requires some extended properties that are used in many functionalities. My problem is: When I update the extended properties of some event in the owner's calendar, the change doesn't propagate to the room copy of the event. The extended property is propagated only when the room needs to accept the event again (e.g. start date changes). Piece of code I'm using to update event: Event toUpdate = new Event { Id = eventData.EventId, SingleValueExtendedProperties =

MS Graph Java SDK: how to upload a large file to OneDrive?

丶灬走出姿态 提交于 2019-12-06 11:06:08
问题 I'm trying to upload file to a OneDrive from my Java application, but i dont understand the flow and dont see any documentation or methods within SKD for file upload. The only flow i've found is: driveClient.me().drive().root().createUploadSession(uploadProperties).buildRequest().post() But this results in NPE: source . how can i set the content as InputStream ? 来源: https://stackoverflow.com/questions/54008743/ms-graph-java-sdk-how-to-upload-a-large-file-to-onedrive

MS Graph Java SDK: how to upload a large file to OneDrive?

て烟熏妆下的殇ゞ 提交于 2019-12-04 16:36:20
I'm trying to upload file to a OneDrive from my Java application, but i dont understand the flow and dont see any documentation or methods within SKD for file upload. The only flow i've found is: driveClient.me().drive().root().createUploadSession(uploadProperties).buildRequest().post() But this results in NPE: source . how can i set the content as InputStream ? 来源: https://stackoverflow.com/questions/54008743/ms-graph-java-sdk-how-to-upload-a-large-file-to-onedrive

Resource 'GUID value here' does not exist or one of its queried reference-property objects are not present

蹲街弑〆低调 提交于 2019-11-30 09:47:14
问题 I'm trying to change an Azure AD user password. The user is already authenticated in a SPA application using the implicit flow and the adal library. While calling: return await graphClient.Me.Request().UpdateAsync(new User { PasswordProfile = new PasswordProfile { Password = userPasswordModel.NewPassword, ForceChangePasswordNextSignIn = false }, }); I'm getting this exception: {"Code: Request_ResourceNotFound\r\nMessage: Resource '35239a3d-67e3-4560-920a-2e9ce027aeab' does not exist or one of