Does MS Teams provide any api to fetch Employee list of my organisation.

Raghavendra G R 121 Reputation points
2021-09-01T14:37:29.53+00:00

Hi,

Does MS Teams expose any API(web service) to fetch Employee list of my organisation, that can be used in the Microsoft teams app built in angular.

Planning to build an Employee Directory kind of an app, so looking if Teams provide any API for same.

Regards,
Raghavendra

Microsoft Teams | Development
Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 119.6K Reputation points MVP Volunteer Moderator
    2021-09-01T15:30:22.097+00:00

    That's one of the "selling points" of the Graph API - a single namespace for all things Microsoft 365, including Teams, including users. Read here: https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http
    And if you are new to Graph, start here: https://learn.microsoft.com/en-us/graph/overview?view=graph-rest-1.0

    2 people found this answer helpful.

  2. Bai, Andy 241 Reputation points
    2021-09-17T03:28:29.27+00:00

    @Raghavendra G R

    1 . Login by your admin
    https://developer.microsoft.com/en-us/graph/graph-explorer

    2 . Get the users from https://graph.microsoft.com/v1.0/users, you can check the Token. Don't forget to modify the permission.

    132850-image.png

    3 . Then copy the token to postman.
    132972-image.png

    4 . you will list all your employee.
    132982-image.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.