I would like to query all the teams in Office 365. There is no endpoint in graph to run such a query. The only supported ones are for joined teams
https://graph.microsoft.com/v1.0/me/joinedTeams
I also noticed the graph endpoint to query all groups
https://graph.microsoft.com/v1.0/groups
which seems to list the teams as well. So what is the difference between groups and teams?
To get a list of all groups in the organization that have teams, get a list of all groups and then in code find the ones that have a resourceProvisioningOptions property that contains "Team".
Please check API docs to List all teams in Microsoft Teams for an organization.
Related
I'm trying to retrieve "contact lists" (distribution lists) from a Microsoft 365 account using the Graph API and direct http calls. Right now I use this URL:
https://graph.microsoft.com/v1.0/users/{userid}/contactfolders/{folderid}/contacts?$top=500&$count=true
This does retrieve the various contacts I have, but not the names of any contact lists or their members. The "count" of items that is retrieved does include those contact lists but not their actual data.
I have tried the "people" and "groups" endpoints but those retrieve different information, not what I am looking for.
I know I can use EWS for this purpose, and I have, but I'm trying to convert my existing application to 100% Graph. I would appreciate any information, thanks.
I've sent a user voice requesting for this feature: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/fetch-contact-group-using-graph-api/idi-p/3262621
Do support if you think there's no feature currently available in Graph API to fetch contact list!
I have a SharePoint list and I'm using the Microsoft Graph API v1.0 (also tried beta) to get list items as per the documentation. As it suggests, I am using the expand=fields but my list has a person field (Engineer) which via OData I was able to expand and then use syntax like "Engineer/Title" and "Engineer/Email". This does not appear to work. How can I get this capability back using the Graph API? Thanks.
Is there any way to get the list of joined teams details of members except graph API? Using graph API of below link we can get the list of joined teams details of any members. Similarly, is there any other way to get the list of joined MS teams group details? I want to use these details in Microsoft bot framework.
https://learn.microsoft.com/en-us/graph/api/user-list-joinedteams?view=graph-rest-1.0&tabs=csharp
Due to some security concern I can not use graph API as of now.
I am also exploring below link but I am not getting anything here... Looking for any REST API like graph API where I can provide the users name and I can get details.
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/get-teams-context?tabs=dotnet
It's not a security concern, rather it's part of the requirement. If i am in your place, i would set Graph API as prerequisite for my app to work, explain the benefits that you're going to get with Graph/application permissions. Apart from Microsoft Graph API you can try with Powershell, CLI.
I am trying to retrieve all of the files associated with each channel within each Team. Per the Microsoft Graph REST API V1.0 documentation, it is GET /teams/{id}/channels/{id}/filesFolder.\
Please see https://learn.microsoft.com/en-us/graph/api/channel-get-filesfolder?view=graph-rest-1.0&tabs=http
However, filesFolder no longer appears as an available query. Is there still a way to achieve this?
Edit: Appears to be the same for Messages. https://learn.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-beta&tabs=csharp&viewFallbackFrom=graph-rest-1.0
Why are these queries no longer available?
You can query Groups with team-id to get the items from the group's drive directly.
You can use https://graph.microsoft.com/v1.0/groups/{team-id}/drive/root/children where /drive/root can get the Document library that the channel folders are part of and /children can display all items from the folder. Referto this doc for more details on how to get a DriveItem.
I have been fiddling with the Microsoft Graph API for sometime now in the context of finding a meeting room.
While I could retrieve the list of meeting rooms using the following api call
/v1.0/me/people?$filter=personType%2fsubclass+eq+%27Room%27
I wonder if I could fetch the attributes associated with the meeting rooms (like meeting room capacity , projector available etc.,) which have been custom added when creating a meeting room.
The /people method isn't a reliable source for rooms , but there is a /beta endpoint for findRooms and findRoomLists.
That said, it unfortunately isn't possible to retrieve the extended resource properties such as msExchResourceCapacity, msExchResourceDisplay or `msExchResourceMetaData. I recommend visiting the UserVoice and adding this as a feature suggestion.