Skip to content

Commit

Permalink
Merge pull request #155 from bepsoccer/dev
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
bepsoccer authored Dec 7, 2023
2 parents 9f67088 + 476d17a commit fb88519
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/function-documentation/Add-VerkadaAccessUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ This will add the access user with the name "New User" and email newUser@contoso

### EXAMPLE 6
```
Add-VerkadaAccessUser -firstName 'New' -lastName 'User' -email '[email protected]' -includeBadge -cardType 'HID' -facilityCode 111 -cardNumber 55555 -pinCode '12345'
Add-VerkadaAccessUser -firstName 'New' -lastName 'User' -email '[email protected]' -cardType 'HID' -facilityCode 111 -cardNumber 55555 -pinCode '12345'
This will add the access user with the name "New User" and email [email protected] with an HID badge 111-55555 and a pin code of 12345. The org_id and tokens will be populated from the cached created by Connect-Verkada.
```

### EXAMPLE 7
```
Add-VerkadaAccessUser -firstName 'New' -lastName 'User' -email '[email protected]' -includeBadge -cardType 'HID' -facilityCode 111 -cardNumber 55555 -groupId 'df76sd-dsc-group1','dsf987-daf-group2'
Add-VerkadaAccessUser -firstName 'New' -lastName 'User' -email '[email protected]' -cardType 'HID' -facilityCode 111 -cardNumber 55555 -groupId 'df76sd-dsc-group1','dsf987-daf-group2'
This will add the access user with the name "New User" and email [email protected] with an HID badge 111-55555 and in groups df76sd-dsc-group1 and dsf987-daf-group2. The org_id and tokens will be populated from the cached created by Connect-Verkada.
```

Expand Down
2 changes: 1 addition & 1 deletion verkadaModule/Private/Invoke-VerkadaRestMethod.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function Invoke-VerkadaRestMethod
$response = Invoke-RestMethod -Uri $uri -Body $body -Headers $headers -Method $method -ContentType 'application/json' -TimeoutSec 5 -SkipHttpErrorCheck -StatusCodeVariable resCode

switch ($resCode) {
200 {
{($_ -eq 200) -or ($_ -eq 201)} {
$loop = $true
return $response
}
Expand Down
4 changes: 2 additions & 2 deletions verkadaModule/Public/Add-VerkadaAccessUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ function Add-VerkadaAccessUser
This will add the access user with the name "New User" and email [email protected] in department defined as sales with departmnetId of US-Sales with the appropriate employeeID, Title, and Company. The org_id and tokens will be populated from the cached created by Connect-Verkada.
.EXAMPLE
Add-VerkadaAccessUser -firstName 'New' -lastName 'User' -email '[email protected]' -includeBadge -cardType 'HID' -facilityCode 111 -cardNumber 55555 -pinCode '12345'
Add-VerkadaAccessUser -firstName 'New' -lastName 'User' -email '[email protected]' -cardType 'HID' -facilityCode 111 -cardNumber 55555 -pinCode '12345'
This will add the access user with the name "New User" and email [email protected] with an HID badge 111-55555 and a pin code of 12345. The org_id and tokens will be populated from the cached created by Connect-Verkada.
.EXAMPLE
Add-VerkadaAccessUser -firstName 'New' -lastName 'User' -email '[email protected]' -includeBadge -cardType 'HID' -facilityCode 111 -cardNumber 55555 -groupId 'df76sd-dsc-group1','dsf987-daf-group2'
Add-VerkadaAccessUser -firstName 'New' -lastName 'User' -email '[email protected]' -cardType 'HID' -facilityCode 111 -cardNumber 55555 -groupId 'df76sd-dsc-group1','dsf987-daf-group2'
This will add the access user with the name "New User" and email [email protected] with an HID badge 111-55555 and in groups df76sd-dsc-group1 and dsf987-daf-group2. The org_id and tokens will be populated from the cached created by Connect-Verkada.
#>

Expand Down
4 changes: 2 additions & 2 deletions verkadaModule/verkadaModule.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Brad Parker
#
# Generated on: 11/17/2023
# Generated on: 12/07/2023
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'verkadaModule.psm1'

# Version number of this module.
ModuleVersion = '0.6.11'
ModuleVersion = '0.6.12'

# Supported PSEditions
CompatiblePSEditions = 'Desktop', 'Core'
Expand Down

0 comments on commit fb88519

Please sign in to comment.