Forum Discussion
Teams bot api to fetch the list of all users in a Microsoft tenant
- Jun 29, 2020
Hi Sanket26 I would suggest trying the 'List Users' function in Graph, please let me know if this helps resolve your issue. Check out the documentation here: https://docs.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http
Hi Sanket26 I would suggest trying the 'List Users' function in Graph, please let me know if this helps resolve your issue. Check out the documentation here: https://docs.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http
- himawanprodugiecomSep 29, 2023Copper Contributor
HI JordanAlyse
using the ms graph client /users will return you list of user, however i cant find the ms teams user id (not sure what is the correct term).
which is usually like 29:1XixdnHxkz23iu84OQnc0AuvDQRaKc3Aqd9-m5aVcB2vuac-SIoFza2n1uY_jZqPKkmiVMQ9ASHs3jxjNhJJMgw
in the graph client /users, the user's id is like : ec6e7d43-699f-4660-b0b5-41248642d7ae, which is not the user id that i can use to send proactive message