Graph API
27 TopicsGraph API access without using client id and secret key
I have a C# Application that reads O365 groups and teams Information using graph API and generates a report. I am able to read and write teams info using graph API by authenticating using tenant info, client id and secret key (these values come from Azure APP registration). I am trying to avoid this App Registration step(tool requires client id and user login to get information). Is there any possible way to do authentication without client id?(like https://developer.microsoft.com/en-us/graph/graph-explorer does) https://docs.microsoft.com/en-us/graph/sdks/choose-authentication-providers?tabs=CS Above auth provider link doesn't have any authentication without clientid. Authentication used in the tool: static String[] sca = { "https://graph.microsoft.com/.default" }; var auth = PublicClientApplicationBuilder .Create(clientid) .WithTenantId(tenantid) .Build(); InteractiveAuthenticationProvider authProvider = new InteractiveAuthenticationProvider(auth , sca);Solved11KViews0likes3CommentsIs there any way to generate chat Id of MS teams using graph API ?
I got the list of chat Id's. I did a conversation in MS teams from GET - https://graph.microsoft.com/beta/me/chats/ using graph API (Graph Explorer). I want to chat with a new user. with whom I never chat before but I want to send a message by using graph API for that, I need a chat Id POST - https://graph.microsoft.com/beta/me/chats/ Request Body - { "body": { "content": " your message " } } So that I want to generate chat id with respect to new user with Whom I never chat before. Is there any way to generate chat Id?6KViews0likes1CommentManage guest access in Teams API
What is the Microsoft Graph API endpoint to restrict guest user access to Microsoft Teams? I want to prevent guests from being added to teams when the team is being created via https://docs.microsoft.com/en-us/graph/api/team-put-teams?view=graph-rest-1.0 call.5.8KViews0likes3CommentsTeams Channel Meetings Graph API
Is there any Graph API to get all channel meetings in a Teams team? Currently I'm using adhoc methods to identify them using multiple graph API queries and collating the result but would like to know if there is a simple graph call to get this5.7KViews1like5CommentsGraph API error message "No Team found with Group id"
Hello, I get an error message every time I run GET https://graph.microsoft.com/v1.0/teams/{team-id}/installedApps?$expand=teamsAppDefinition I get the error message "No Team found with Group id." I've also tried using the following and got the same error message: $uri = ('https://graph.microsoft.com/v1.0/groups?$select=id,displayname,resourceProvisioningOptions') $teams = (Invoke-RestMethod -Method Get -Uri $uri -Headers $token).Value #| Where-Object {$_.resourceProvisioningOptions -contains 'Team'} foreach ($team in $teams) { # Get the General Channel properties $channel = (Invoke-RestMethod -Method Get -Uri ("https://graph.microsoft.com/v1.0/teams/$($team.ID)/channels" + '?$filter=DisplayName eq ' + "'General'") -Headers $token).Value } The error screenshot is below. I'm getting this in PowerShell as well as the Graph Explorer. Reading https://docs.microsoft.com/en-us/graph/known-issues, it does look like there's a known issue with pulling list of teams, is this what could be causing this? Thank you! PamSolved5KViews0likes5CommentsHow to get the specific userId for communication between a bot and a particular user
A microsoft teams bot uses a specific user id for communication between bot and a user. This ID is unique for communication between these two. I am trying to get this ID for proactive messaging. I have seen many samples where we get this ID from a particular team channel or between a group chat. But, the problem is i want to get the userID of a user who is not a part of this chat. Example -: If an employee submits a request using bot then his manager should be notified about that request proactively by the bot. How can i achieve that using the Application scope. The bot is installed for bot employee and manager. I couldn't find any example where i can send a message from bot to user of AD or any teams user for that matter even if the bot is installed for them.4.8KViews0likes1CommentAbout the Teams API filter with resourceProvisioningOptions, seems not working
Need to get all list of Teams via Graph API, https://docs.microsoft.com/en-us/graph/teams-list-all-teams?context=graph%2Fapi%2F1.0&view=graph-rest-1.0 I get the example of the filter to get groups with teams. GET /groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team') Could anyone help to explain the above "/Any(x:x eq 'Team')"? After using above example filter, I found the response is same like I didn't use the filter, still including all of groups which resourceProvisioningOptions are not 'Team', so the filter seems to be not working. below is my code looks like: $uri = "https://graph.microsoft.com/beta/groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team')" $groups = GetGraphData($uri,$headerParams)4.5KViews0likes1CommentAPI for MS Teams Apps in Teams Admin Center
Hello Team I need to validate what apps are currently allowed, blocked and submitted in my Teams tenant. i know that there is no direct method to export them from Teams Admin centre, however we can do get some information from GRAPH API I need to export to file that list all apps with the following Name Publisher Status Custom app (optional) With help of https://docs.microsoft.com/en-us/graph/api/appcatalogs-list-teamsapps?view=graph-rest-1.0&tabs=http i could manage to get the information except "STATUS" and CUSTOM APP parameter , on which i could see whether the apps are allowed or BLOCKED https://graph.microsoft.com/v1.0/appCatalogs/teamsApps?$expand=AppDefinitions https://graph.microsoft.com/v1.0/appCatalogs/teamsApps?$filter=distributionMethod eq '1' https://graph.microsoft.com/v1.0/appCatalogs/teamsApps?$filter=distributionMethod eq '0' Also, from the graphAPI explorer, how can i export to an file (CSV) or any another options your timely help would be much appreciated4.1KViews0likes1CommentCannot access teams from Graph API
Hello, I cannot create and query teams in Teams using the Graph API. It seems like an API error because the Team is visible in Teams for Windows. Steps to reproduce : Create a Team using: https://graph.microsoft.com/v1.0/teams When I check the creation operation the API returns 404 error: https://graph.microsoft.com/v1.0/teams/%7Bteam-id%7D/operations/%7Boperation-id%7D When I query the team by ID the API returns 404 error: https://graph.microsoft.com/v1.0/teams However when I query the group by ID the API returns the group without errors: https://graph.microsoft.com/v1.0/teams Error when getting the existing team : { "error": { "code": "NotFound", "message": "No team found with Group Id b97baca3-5f1c-4df9-957e-84565abd339a", "innerError": { "message": "No team found with Group Id b97baca3-5f1c-4df9-957e-84565abd339a", "code": "ItemNotFound", "innerError": {}, "date": "2022-05-27T15:15:48", "request-id": "1589738d-3a4b-4a8a-824d-31383bb5a2c4", "client-request-id": "ffaf5d2e-d477-d8a6-63b0-a48b9f0dcbe1" } } }4.1KViews0likes5CommentsUnable to post a message from Graph API Explorer to Teams
After following the documentation i am able to create a Channel but unable to post a message to a channel. POST Method: https://graph.microsoft.com/v1.0/teams/49fjfj570-0a14-40ff-abf6-d899adfdefafa/channels/19:3ea88b8d91f544cc96763786c28cd6010@thread.skype/messages/Hello Response: { "error": { "code": "BadRequest", "message": "Resource not found for the segment 'messages'.", "innerError": { "request-id": "729731a6-d7ce-4687-a00a-51eda380a705", "date": "2019-08-19T18:33:50" } } }3.9KViews0likes1Comment