microsoft-graph-api

Unable to search Microsoft Graph Api V1.0 users using Wildcard search pattern

眉间皱痕 提交于 2020-06-28 05:43:04
问题 I am trying to search users based on wild card regex match using below code snippet: var users = await graphServiceClient.Users.Request().Select(e => new { e.DisplayName, e.GivenName, e.PostalCode }).Filter(RegexMatch(DisplayName("Rob.* Thomas") ).GetAsync(); So, above should match user "Robert Thomas"and RegexMatch is currently not available in filter keyword list ,i have just used as an example to achieve this task. Below should match Robin Thomas:- Filter(RegexMatch(DisplayName("Robi.?

Accessing MS Graph from API on behalf of user currently signed in to separate web client

雨燕双飞 提交于 2020-06-28 05:16:45
问题 I am developing an API(ASP.NET Core) which is accessed via separately hosted web client(React), both hosted on azure as app services. Client app must have auth based on azure Ad(single tenant, preferably secured by azure auth based on aad). When the user signs in to client the API must have access to MS Graph on behalf of user. Obviously both resources must be secured, I have tried using azure auth based on AAD on both app services, but I couldn't get a token to MsGraph in this approach with

Accessing MS Graph from API on behalf of user currently signed in to separate web client

本小妞迷上赌 提交于 2020-06-28 05:16:08
问题 I am developing an API(ASP.NET Core) which is accessed via separately hosted web client(React), both hosted on azure as app services. Client app must have auth based on azure Ad(single tenant, preferably secured by azure auth based on aad). When the user signs in to client the API must have access to MS Graph on behalf of user. Obviously both resources must be secured, I have tried using azure auth based on AAD on both app services, but I couldn't get a token to MsGraph in this approach with

Document uploaded to MS Teams using graph API gets corrupted

随声附和 提交于 2020-06-28 04:47:25
问题 I am trying to upload a document to Microsoft Teams using Microsoft Graph (beta version), but the document gets corrupted after a successful upload. Using Graph, I'm first creating an Group, creating a Team based on the Group, adding some Team Members and finally uploading a document to the default channel. All works fine except the uploaded document gets corrupted and the Office Online editor is not able to open it. We can however download the file and open in Microsoft Word after correcting

Webhook not performing subscription validation

半腔热情 提交于 2020-06-28 04:42:09
问题 We are creating a Webhook/Subscription using Microsoft Graph. However, the following JSON is returned and we can see no corresponding HTTP request to our validation public web server: "error": { "code": "InvalidRequest", "message": "Subscription validation request failed. Must respond with 200 OK to this request.", "innerError": { "request-id": "d2c4eeca-1bf9-4657-a904-ba6925428bbd", "date": "2018-02-24T17:19:56" } } Our HTTP POST request to https://graph.microsoft.com/v1.0/subscriptions

Getting the drive's items from Microsoft Graph API: The request is malformed or incorrect

妖精的绣舞 提交于 2020-06-28 04:24:48
问题 I am trying to get a drive's items via the Microsoft Graph Api (SDK) and tried the following options: _graphServiceClient.Drives[driveInfo.Id].Items.Request().GetAsync() :, this unfortunately results in an error with message error with message "The request is malformed or incorrect" and code "invalidRequest" . If I execute _graphServiceClient.Drives[driveInfo.Id].Request().GetAsync() however, I get back all drives but the Items property is null . _graphServiceClient.Drives[driveInfo.Id]

Is there a way to weaken the permissions of the apps I create on Azure AD?

夙愿已清 提交于 2020-06-28 04:02:14
问题 I created the app on Azure AD. The application works fine. By the way, I wanted to make this app's permissions smaller. First, I want to limit the schedule that this app can view. For example, the application can see user A's schedule, but not user B's schedule, and so on. User A and User B are registered on the same Azure AD. Second, I want to limit the users who can impersonate themselves as email senders. For example, user C can send a mail, but user D can't send a mail. Is there a better

Microsoft Graph API: Cancel recurring events

北城余情 提交于 2020-06-28 02:57:03
问题 I am currently try to use the Microsoft Graph API to cancel a set of recurring meetings using the following call: POST /users/{prinicipalName}/calendar/events/{id}/cancel And I am getting back Unsupported segment type error. I can delete events one at a time, but I need a way to cancel all events in a recurrence. Any help would be much appreciated. 回答1: There isn't a /cancel endpoint. If you want to remove recurrences from a meeting, you need to set the recurrence pattern to null : PATCH

Write requests are only supported on contained entities, Microsoft Graph API

自作多情 提交于 2020-06-28 02:38:32
问题 POST https://graph.microsoft.com/v1.0/Groups/bb754bb6-xxxx-xxxx-8e66-4c57c626ee29/members Accept: application/json Authorization: Bearer <access key> Content: { "directoryObject": { "id": "5cb55683-xxxx-xxxx-xxxx-5e163c939005" } } Response: { error: { code: "BadRequest" message: "Write requests are only supported on contained entities" innerError: { request-id: "20167459-5495-4034-9e27-503c64340c1f" date: "2015-11-27T14:25:20" }- }- } I am able to get members of a group but not able add a

Write requests are only supported on contained entities, Microsoft Graph API

こ雲淡風輕ζ 提交于 2020-06-28 02:37:41
问题 POST https://graph.microsoft.com/v1.0/Groups/bb754bb6-xxxx-xxxx-8e66-4c57c626ee29/members Accept: application/json Authorization: Bearer <access key> Content: { "directoryObject": { "id": "5cb55683-xxxx-xxxx-xxxx-5e163c939005" } } Response: { error: { code: "BadRequest" message: "Write requests are only supported on contained entities" innerError: { request-id: "20167459-5495-4034-9e27-503c64340c1f" date: "2015-11-27T14:25:20" }- }- } I am able to get members of a group but not able add a