microsoft-graph

Issue in Matching Department Name while using Microsoft Graph API V1.0

跟風遠走 提交于 2020-04-18 05:43:20
问题 I am using below code to match Department Name: string departmentName = "Admin"; var departmentPeoples = await graphServiceClient.Users.Request().Filter($"department eq '{departmentName}'").Select(u => new { u.DisplayName, u.MobilePhone, u.BusinessPhones, u.UserPrincipalName }).GetAsync(); This works, but when my search string is Admin & IT ,it doesn't work because of & sign. I tried using var departmentname ="Admin \& IT" But still it shows error: Microsoft.Graph.ServiceException: 'Code:

How to query for the list of members and their basic profiles, including Teams user IDs?

别来无恙 提交于 2020-04-17 22:50:56
问题 Is there an end-to-end sample provided to query for the list of members and their basic profiles, including Teams user IDs and Azure Active Directory (Azure AD)? I am following https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/get-teams-context?tabs=json and microsoft graph Postman collection, however it seems too complex for me to understand. I need to fetch all the userId under for my MS Team 回答1: The document you are following is indeed used to get the information you

Failure to generate access token using refresh token for O365 API

萝らか妹 提交于 2020-04-13 07:52:16
问题 I'm getting invalid_grant error while generating access token using refresh token POST https://login.microsoftonline.com/common/oauth2/v2.0/token Response { "error": "invalid_grant", "error_description": "AADSTS50173: The provided grant has expired due to it being revoked. The user might have changed or reset their password. The grant was issued on '2018-06-13T23:20:02.9860000Z' and the TokensValidFrom date for this user is '2018-06-15T17:21:11.0000000Z'\r\nTrace ID: 4237d0b8-51fe-43c2-9b5c

Microsoft Graph API serviceNotAvailable error when getting site by ID

試著忘記壹切 提交于 2020-04-11 12:35:11
问题 I am getting an HTTP 503 status MSFT Graph API error when attempting to get a Sharepoint site that was successfully created by a Post with the Graph API. I am using a Developer O365 subscription. A Python application using the MSFT MSAL library for managing the authentication token is being used. I am able to successfully call other parts of the Graph API with the python app. When using the Graph Explorer logged into my account and with Site permissions I get a correct successful response.

Microsoft Graph API serviceNotAvailable error when getting site by ID

↘锁芯ラ 提交于 2020-04-11 12:35:06
问题 I am getting an HTTP 503 status MSFT Graph API error when attempting to get a Sharepoint site that was successfully created by a Post with the Graph API. I am using a Developer O365 subscription. A Python application using the MSFT MSAL library for managing the authentication token is being used. I am able to successfully call other parts of the Graph API with the python app. When using the Graph Explorer logged into my account and with Site permissions I get a correct successful response.

Microsoft Graph API serviceNotAvailable error when getting site by ID

依然范特西╮ 提交于 2020-04-11 12:32:03
问题 I am getting an HTTP 503 status MSFT Graph API error when attempting to get a Sharepoint site that was successfully created by a Post with the Graph API. I am using a Developer O365 subscription. A Python application using the MSFT MSAL library for managing the authentication token is being used. I am able to successfully call other parts of the Graph API with the python app. When using the Graph Explorer logged into my account and with Site permissions I get a correct successful response.

Microsoft Teams botbuilder How to create conversation in another channel

被刻印的时光 ゝ 提交于 2020-04-11 12:19:07
问题 (For reference I have admin_consent for the organization with a auth scope of offline_access User.ReadWrite.All Group.ReadWrite.All AppCatalog.ReadWrite.All for my token that I use to interact with the Teams instance.) After installing the app via POST /teams/{id}/installedApps it sends an conversationUpdate event that I respond to and save the entire ConversationReference object. It has a lot of stuff I don't need but I'm not sure what is necessary. The immediate response goes to the General

Getting Microsoft Graph Drive items by path using the .NET SDK

核能气质少年 提交于 2020-04-11 03:41:16
问题 As it is documented, using the Microsoft Graph REST API you can (among other options) get an item by Id or Path. This works fine, as expected: GET /me/drive/items/{item-id}/children GET /me/drive/root:/{item-path}:/children Using the .NET SDK, I can get a folder by Id (i.e. the first case): var items = await graphClient.Me.Drive.Items[myFolderId].Children.Request().GetAsync(); However, I couldn't find how (using the .NET SDK) to do the same, but specifying a path instead of an Id (i.e. the

Create Microsoft Team Tab with API

老子叫甜甜 提交于 2020-04-10 05:23:33
问题 I am researching the Microsoft Teams and graph API possibilities and would like to know if it is on the roadmap to be able to create and configure Tabs through the graph API. I have seen that teams are in the graph API beta, but can't find any information about creating or configuring tabs programmatically. Thanks! 回答1: At this time, no such functionality exists. I would suggest adding this request to the Microsoft Teams UserVoice. 回答2: You can do it programatically as stated below. Hope this

Create Microsoft Team Tab with API

让人想犯罪 __ 提交于 2020-04-10 05:22:23
问题 I am researching the Microsoft Teams and graph API possibilities and would like to know if it is on the roadmap to be able to create and configure Tabs through the graph API. I have seen that teams are in the graph API beta, but can't find any information about creating or configuring tabs programmatically. Thanks! 回答1: At this time, no such functionality exists. I would suggest adding this request to the Microsoft Teams UserVoice. 回答2: You can do it programatically as stated below. Hope this