Get exTeamUsersMap
Gets all the users who currently has a valid mapping for within a MS Team’s tenant.
Get-exTeamUsersMap
-Domain <String>
-TeamID <String>
-ChannelId <String>
-Cookie <String>
[<CommonParameters>]
Parameters
- Domain: The domain where Team site is hosted, teams.company.com
- TeamId:
Required Team ID to be used by the cmdlet. See Common Parameters section in this document for more information. - ChannelId:
Channel ID to be used by the cmdlet. Retrieve the value for this parameter by right-click on the team site or channel and press
“Get Link”
command. - Cookie:
Optional cookie token to be used to authenticated into Team environment for eTask cmdlets. - FilterExp: Optional filter expression to be used by the cmdlet. See Common Parameters section in this document for more information.
Output
TBD
Example
Write-Host "++++ Get-exUsersMap for <--Your channel-->"
$myUsers = Get-exUsersMap -Domain $myDomain -TeamId $myTeam -ChannelId $myChannel -ProjectId $myProjects.ProjectId -FilterExp "user365 eq 'oliver@anadea.com' or email eq 'oliver@anadea.com'"
#$myUsers | Format-List
$myUsers | Format-Table -Property displayname, user365, username, source
Write-Host "+ Total users count:" $myUsers.Count
Write-Host "-------------------------------------------------------------------------"
TBS
See this document for more information on user mapping.