Powershell - Get all columns in Microsoft Teams

Elina 1 Reputation point
2020-09-30T15:05:00.647+00:00

Hi there,

I'm using Powershell to extract information on users in the company channels. I've got their names and e-mails but not their location. Is there a way to get all information on the users within the teams?

Thanks.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,184 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,296 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 106.7K Reputation points MVP
    2020-09-30T16:06:40.453+00:00

    You will have to use the MSOL/Azure AD module for additional fields. Will help if you post a short sample of what you are using currently.


  2. JimmyYang-MSFT 53,291 Reputation points Microsoft Vendor
    2020-10-01T07:07:35.057+00:00

    Hi @Elina ,

    To display the full list of user accounts, please run this command:

    Get-MsolUser  
    

    https://learn.microsoft.com/en-us/microsoft-365/enterprise/view-user-accounts-with-microsoft-365-powershell?view=o365-worldwide#use-the-microsoft-azure-active-directory-module-for-windows-powershell


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.