external help file | Module Name | online version | schema |
---|---|---|---|
DuoSecurity-help.xml |
DuoSecurity |
2.0.0 |
Associate Hardware Token with User
Add-DuoUserToken [-UserId] <String> [-TokenId] <String> [<CommonParameters>]
Associate a hardware token with the user with ID user_id. Requires "Grant write resource" API permission.
Object limits: 100 tokens per user.
Add-DuoUserToken -UserId SOMEUSERID -TokenId SOMETOKENID
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: False
The ID of the hardware token to associate with the user.
Type: String
Parameter Sets: (All)
Aliases: token_id
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://duo.com/docs/adminapi#associate-hardware-token-with-user