SOLVED

Power shell command to extract Users from Teams Admin

%3CLINGO-SUB%20id%3D%22lingo-sub-1503753%22%20slang%3D%22en-US%22%3EPower%20shell%20command%20to%20extract%20Users%20from%20Teams%20Admin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1503753%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20anyone%20help%3F%20Is%20there%20a%20power%20shell%20command%20that%20will%20allow%20me%20to%20get%20this%20list%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3A%20%3CA%20href%3D%22https%3A%2F%2Fadmin.teams.microsoft.com%2Fusers%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fadmin.teams.microsoft.com%2Fusers%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20extract%20to%20excel%3F%20Thanks.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1503753%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1504847%22%20slang%3D%22en-US%22%3ERe%3A%20Power%20shell%20command%20to%20extract%20Users%20from%20Teams%20Admin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1504847%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F435511%22%20target%3D%22_blank%22%3E%40JoleneHanrahan%3C%2FA%3E%26nbsp%3BHey%2C%20maybe%20this%20could%20help%20you%20out%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fo365reports.com%2F2020%2F05%2F28%2Fmicrosoft-teams-reporting-using-powershell%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fo365reports.com%2F2020%2F05%2F28%2Fmicrosoft-teams-reporting-using-powershell%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fo365reports.com%2F2018%2F12%2F14%2Fexport-office-365-user-license-report-powershell%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fo365reports.com%2F2018%2F12%2F14%2Fexport-office-365-user-license-report-powershell%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fenterprise%2Fpowershell%2Fview-licenses-and-services-with-office-365-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fenterprise%2Fpowershell%2Fview-licenses-and-services-with-office-365-powershell%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Can anyone help? Is there a power shell command that will allow me to get this list:

 

: https://admin.teams.microsoft.com/users

 

and extract to excel? Thanks. 

3 Replies
Highlighted

@bec064 

 

We have several users that are unable to initiate new chats in Teams and cannot join any new teams. The chat issue applies to both 1:1 and 1 to multiple users, and interestingly they have no issues participating in chats they were previously a part of. We have observed that these users do not display in the Users list in the Teams admin center. They do display in Azure AD. We think perhaps their not displaying the Users list might be a clue and would like to be able to cross reference that list with a list of licensed users from Azure AD. Hence our wanting to extract the contents of this specific list.

 

While each of the scripts you provided are helpful in other ways, they don't generate that specific list. Anyone else have any idea? Thanks. :)

Highlighted

@JoleneHanrahan Hello and thanks for making it more clear. It can probably be done with MS Graph (wild guess) as well but it's not within my field so I'm just gonna leave it there! As per my previous reply I attached the last link as how to view licenses and services as I get the feeling something is incorrect with the licensing part. *edit* (Just noticed I didn't send through all text). But that doesn't explain why some users can use Teams. It sounds a bit like policies involved. Have you viewed all account settings and licenses for a single user experiencing the issue with a user that's not having the issue to see what differs?

 

Without knowing anything about your environment and config maybe you need to inactivate / reactivate the Teams licenses for your users to make them populate in the Users list in the Teams admin portal. At least I've heard about that "solution" previously. As for the other problem I would at least compare them thoroughly.

 

https://docs.microsoft.com/en-us/microsoftteams/user-access#assign-teams-licenses-in-bulk