| external help file | DuoSecurity-help.xml |
|---|---|
| Module Name | DuoSecurity |
| online version | https://duo.com/docs/adminapi#retrieve-groups-by-user-id |
| schema | 2.0.0 |
Retrieve Groups by User ID
Get-DuoUserGroups [-UserId] <String> [<CommonParameters>]
Returns a paged list of groups associated with the user with ID user_id. Requires "Grant read resource" API permission.
Get-DuoUserGroups -UserId SOME USERID
The ID of the User
Type: String
Parameter Sets: (All)
Aliases: user_id
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.