microsoft-graph-teams

Get members from any type of a chat in Teams (personal, groupChat, or channel)?

久未见 提交于 2021-02-11 18:22:43
问题 I have a message extension app for MS TEAMS. This app will be preinstalled inside some organization. I should get members of any conversation type. There is a way via a graph https://graph.microsoft.com/v1.0/groups/{group-id-for-teams}/members. I use application permission here. But it looks like I can get users only for "group" (a team is inside Teams), which has channels. I got 4 types of conversation type from ChannelAccount (namespace Microsoft.Bot.Schema): personal groupChat, channel,

Microsoft Graph API Java - get group using displayName

大兔子大兔子 提交于 2021-02-11 16:53:14
问题 I am using Microsoft Graph API( java SDK) to add members to the group. But I see that I could only pull a group using the "id" .But there should be an easy way to pull the group information using name or displayName? I am trying to get the group id, so that I could use it to add members Group group = graphClient.groups("id") .buildRequest() .get(); 回答1: Have you tried something like this? LinkedList<Option> requestOptions = new LinkedList<Option>(); requestOptions.add(new QueryOption("$filter

Microsoft Graph API Java - get group using displayName

久未见 提交于 2021-02-11 16:52:31
问题 I am using Microsoft Graph API( java SDK) to add members to the group. But I see that I could only pull a group using the "id" .But there should be an easy way to pull the group information using name or displayName? I am trying to get the group id, so that I could use it to add members Group group = graphClient.groups("id") .buildRequest() .get(); 回答1: Have you tried something like this? LinkedList<Option> requestOptions = new LinkedList<Option>(); requestOptions.add(new QueryOption("$filter

https://graph.microsoft.com/v1.0/places/microsoft.graph.room Api is not giving updated data

拜拜、爱过 提交于 2021-02-10 14:56:06
问题 I am Using Microsoft Graph to fetch list of rooms available for a tenant. As per Documentation, List Palace Api (https://docs.microsoft.com/en-us/graph/api/place-list?view=graph-rest-1.0&tabs=http) should be used for this. Now, I am facing problem with getting updated data using List Places api. I have added few rooms to the tenant but those are not reflected as part of response for List places api. However, findRooms api which is in Beta gives the updated response. https://graph.microsoft

https://graph.microsoft.com/v1.0/places/microsoft.graph.room Api is not giving updated data

此生再无相见时 提交于 2021-02-10 14:55:10
问题 I am Using Microsoft Graph to fetch list of rooms available for a tenant. As per Documentation, List Palace Api (https://docs.microsoft.com/en-us/graph/api/place-list?view=graph-rest-1.0&tabs=http) should be used for this. Now, I am facing problem with getting updated data using List Places api. I have added few rooms to the tenant but those are not reflected as part of response for List places api. However, findRooms api which is in Beta gives the updated response. https://graph.microsoft

Microsoft graph, fetching app permissions based on appId

我与影子孤独终老i 提交于 2021-02-08 09:55:47
问题 Azure AD: I want to fetch delegated as well as application permissions/consent based on appId. 回答1: To Lists delegated permission grants (OAuth2PermissionGrants) and application permissions grants (AppRoleAssignments) granted to an app in Azure Ad. Please use this script 来源: https://stackoverflow.com/questions/63269627/microsoft-graph-fetching-app-permissions-based-on-appid

Get teamId in message extension handler

折月煮酒 提交于 2021-01-29 07:02:14
问题 When developing a message extension for Microsoft Teams, is it possible to retrieve the ID of a team where the user is invoking the message extension command without first adding the bot to that team? I can do this when the bot is added to the team manually based on TeamsInfo.getTeamDetails() , however, I don't really need (or want) to add the bot to the team for my goal. All I need is the channel ID (which is available from the context/conversation) and the ID of the underlying team.

Accessing and creating Teams Chats via Graph API

守給你的承諾、 提交于 2021-01-28 14:19:38
问题 I'm going over the Microsoft Teams section of the Graph API and trying to find out how to do two things: Create a new chat, giving it a topic that correlates to an entity in our app (essentially creating a chat around an entity), invite specific users into it, and send messages to the chat. Access the currently logged-in user's private chats, filtered by their topic , and show their contents inside our app. For #2, it looks like it should be possible using beta endpoint of the Graph API, but

Fail to create online meeting with application identity with GraphServiceClient

南楼画角 提交于 2021-01-24 07:10:34
问题 I'm using an application identity from Azure AD with both read write permission granted, I've also run the Grant-CsApplicationAccessPolicy so that the application identity has right to create online meeting on behalf of a real user identity from Azure AD I know my setup works with get user from the graph api. However, I'm getting error after running the following: var confidentialClient = ConfidentialClientApplicationBuilder .Create(clientId) .WithAuthority($"https://login.microsoftonline.com

Microsoft Graph API getSchedule filter by calendars

落花浮王杯 提交于 2021-01-07 02:49:19
问题 I'm using microsoft graph API and want to get user's busy slots for particular calendars, so there is an end point /getSchedule which takes body like : { "schedules": ["adelev@contoso.onmicrosoft.com", "meganb@contoso.onmicrosoft.com"], "startTime": { "dateTime": "2019-03-15T09:00:00", "timeZone": "Pacific Standard Time" }, "endTime": { "dateTime": "2019-03-15T18:00:00", "timeZone": "Pacific Standard Time" }, "availabilityViewInterval": "60" } In this endpoint I want to filter by calendars, I