Add groups to new/set-snipeituser

This commit is contained in:
Rob 2022-04-07 14:35:05 +10:00
parent 98095b6a53
commit 80e2e30ac8
3 changed files with 11 additions and 1 deletions

View file

@ -51,7 +51,7 @@ function New-SnipeitAudit() {
if ($PSBoundParameters.ContainsKey('tag')) {
$Values += @{"asset_tag" = $tag}
}
if ($PSBoundParameters.ContainsKey('next_audit_date')) {
$Values += @{"next_audit_date" = ($next_audit_date).ToString("yyyy-MM-dd")}
}

View file

@ -44,6 +44,9 @@
.PARAMETER manager_id
ID number of manager
.PARAMETER groups
ID numbers of groups
.PARAMETER employee_num
Employeenumber
@ -103,6 +106,8 @@ function New-SnipeitUser() {
[int]$manager_id,
[int[]]$groups,
[string]$employee_num,
[bool]$ldap_import = $false,

View file

@ -47,6 +47,9 @@
.PARAMETER manager_id
ID number of manager
.PARAMETER groups
ID numbers of groups
.PARAMETER employee_num
Employeenumber
@ -110,6 +113,8 @@ function Set-SnipeitUser() {
[Nullable[System.Int32]]$manager_id,
[int[]]$groups,
[string]$employee_num,
[bool]$activated,