12Knocksinna / Office365itpros

Office 365 for IT Pros PowerShell examples
MIT License
1.28k stars 567 forks source link

no support for hybrid teams users #61

Closed stephanefavreza closed 2 years ago

stephanefavreza commented 2 years ago

I noticed that this script was only returning a handful of users, closer inspection noted that it was only the cloud-only teams users. Noted line 9 is filtering on InterpretedUserType and since out tenants were migrated from OnPrem Skype for Business, the users were Hybrid InterpretedUserType's. So i hashed # out line 9 and added the following at line 47 "InterpretedUserType" = $user.InterpretedUserType

image

12Knocksinna commented 2 years ago

Thanks. I've added an extra comment in the script and included the line to output the user type.