Get-TeamUser
Returns users of a team.
Syntax
Get-TeamUser
-GroupId <String>
[-Role <String>]
[<CommonParameters>]
Description
Returns an array containing the UPN, UserId, Name and Role of users belonging to an specific GroupId.
Examples
Example 1
Get-TeamUser -GroupId 2f162b0e-36d2-4e15-8ba3-ba229cecdccf -Role Owner
This example returns the UPN, UserId, Name, and Role of the owners of the specified GroupId.
Parameters
-GroupId
GroupId of the team
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Role
Filter the results to only users with the given role: Owner or Member.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應