| external help file | Module Name | online version | schema |
|---|---|---|---|
verkadaModule-help.xml |
verkadaModule |
2.0.0 |
Sets the user details for a Command User in an organization using https://apidocs.verkada.com/reference/putuserviewv1
Set-VerkadaCommandUser [[-userId] <String>] [[-email] <String>] [[-firstName] <String>]
[[-middleName] <String>] [[-lastName] <String>] [[-externalId] <String>] [[-companyName] <String>]
[[-department] <String>] [[-departmentId] <String>] [[-employeeId] <String>] [[-employeeType] <String>]
[[-employeeTitle] <String>] [[-phone] <String>] [[-x_verkada_auth_api] <String>] [[-region] <String>]
[-errorsToFile] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Updates a user's metadata for an organization based on either provided user ID or an external ID set during creation. The reqired token can be directly submitted as a parameter, but is much easier to use Connect-Verkada to cache this information ahead of time and for subsequent commands.
Set-VerkadaCommandUser -userId '801c9551-b04c-4293-84ad-b0a6aa0588b3' -firstName 'New' -lastName 'User'
This will update the Command user with userId 801c9551-b04c-4293-84ad-b0a6aa0588b3 with the name "New User". The token will be populated from the cache created by Connect-Verkada.
Set-VerkadaCommandUser -userId '801c9551-b04c-4293-84ad-b0a6aa0588b3' -firstName 'New' -lastName 'User' -x_verkada_auth_api 'sd78ds-uuid-of-verkada-token'
This will update the Command user with userId 801c9551-b04c-4293-84ad-b0a6aa0588b3 with the name "New User". The token is submitted as a parameter in the call.
Set-VerkadaCommandUser -externalId 'newUserUPN@contoso.com' -email 'newUser@contoso.com'
This will update the Command user with externalId newUserUPN@contoso.com with the email newUser@contoso.com. The token will be populated from the cache created by Connect-Verkada.
Set-VerkadaCommandUser -userId '801c9551-b04c-4293-84ad-b0a6aa0588b3' -externalId 'newUserUPN@contoso.com'
This will update the Command user with userId 801c9551-b04c-4293-84ad-b0a6aa0588b3 to have the new externalId newUPN@contoso.com. The token will be populated from the cache created by Connect-Verkada.
Set-VerkadaCommandUser -userId '801c9551-b04c-4293-84ad-b0a6aa0588b3' -firstName 'New' -lastName 'User' -email 'newUser@contoso.com -companyName 'Contoso' -department 'sales' -departmentId 'US-Sales' -employeeId '12345' -employeeTitle 'The Closer' -employeeType 'Full Time' -phone '+18165556789'
This will update the Command user with userId 801c9551-b04c-4293-84ad-b0a6aa0588b3 to the name "New User" and email newUser@contoso.com in department defined as sales with departmnetId of US-Sales with the appropriate companyName, employeeID, employeeTitle, employeeType and phone. The token will be populated from the cache created by Connect-Verkada.
The UUID of the user
Type: String
Parameter Sets: (All)
Aliases: user_id
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe email address of the user
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe first name of the user
Type: String
Parameter Sets: (All)
Aliases: first_name
Required: False
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe middle name of the user
Type: String
Parameter Sets: (All)
Aliases: middle_name
Required: False
Position: 4
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe last name of the user
Type: String
Parameter Sets: (All)
Aliases: last_name
Required: False
Position: 5
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: Falseunique identifier managed externally provided by the consumer
Type: String
Parameter Sets: (All)
Aliases: external_id
Required: False
Position: 6
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe company name of the user
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe department of the user
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 8
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe departmentId of the user
Type: String
Parameter Sets: (All)
Aliases: department_id
Required: False
Position: 9
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe employee ID of the user
Type: String
Parameter Sets: (All)
Aliases: employee_id
Required: False
Position: 10
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe employee type of the user
Type: String
Parameter Sets: (All)
Aliases: employee_type
Required: False
Position: 11
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe title of the user
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 12
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe main phone number of the user, E.164 format preferred
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 13
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe public API token obatined via the Login endpoint to be used for calls that hit the public API gateway
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 14
Default value: $Global:verkadaConnection.x_verkada_auth_api
Accept pipeline input: False
Accept wildcard characters: FalseThe region of the public API to be used
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 15
Default value: Api
Accept pipeline input: False
Accept wildcard characters: FalseSwitch to write errors to file
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
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.