Cli-microsoft365: New command: List all users for a Microsoft Teams team

Created on 26 Nov 2018  路  7Comments  路  Source: pnp/cli-microsoft365

List all users for a Microsoft Teams team

Command; teams users list -i| --teamId <teamId>

  • teamId: id of the group
new feature work in progress

All 7 comments

Feel free to assign me if you agree on spec.

Awesome! All yours!

Updated spec to --teamId to match teams hannel add command

Oke, so one more review while building. Suggest we stick to the implementation in teams PowerShell (https://docs.microsoft.com/en-us/powershell/module/teams/get-teamuser?view=teams-ps).

Command; teams users list -i| --groupId <groupId> -r| --role [Owner,Member,Guest]

@waldekmastykarz it would be the same implementation for group user list, do you want me to implement that as well?

For consistency, let's stick to teamId instead of groupId. Also, let's use user (singular) instead of users to keep it consistent with our naming convention. I like the idea of specifying the role. If you can spec group user list as a separate issue, then we can track it separately for progress.

Are you still working on this @appieschot?

Yes, only need to write some unit tests and validate a work around. It turns out the graph always returns 'owners' as roletype 'member'.

Was this page helpful?
0 / 5 - 0 ratings