question

TonnieKlappe-5320 avatar image
0 Votes"
TonnieKlappe-5320 asked HunaidHanfee-MSFT commented

Data from Teams

Hello,

is there a way to download a list of all the teams and users from MSteams with python API?

Can u tell me where i can find that?

office-teams-app-devmicrosoft-graph-teamwork
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

HunaidHanfee-MSFT avatar image
0 Votes"
HunaidHanfee-MSFT answered HunaidHanfee-MSFT commented

Hello,
There's no direct method to download but you can use graph API and write some code around it to download.
You can use List all teams in Microsoft Teams for an organization and List users graph APIs to get the required data.

Here is the sample utilizing the Microsoft Graph API to retrieve data about the user. You can modify this as per your requirements.

Thanks,

Hunaid Hanfee



If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

I can login in the graph app and i can see the teams of my organisation.

https://graph.microsoft.com/v1.0/groups

so that is fine, but what is the complete API URL so i can use this in python with request

0 Votes 0 ·

Hello,
To use it inside app you need to get access token and then you can use same https://graph.microsoft.com/v1.0/groups to get desire data.

Here are the two ways to get access token:
1. Get access without a user.
2. Get access on behalf of a user.


0 Votes 0 ·

Hello,
We haven't heard anything from you. Is this issue solved for you?
If the response is helpful, please click "Accept Answer" and upvote it.
Thanks

0 Votes 0 ·