mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-16 03:05:48 +00:00
API doesn't allow null manager_id
This commit is contained in:
parent
8214d8db99
commit
529da8297b
1 changed files with 2 additions and 1 deletions
|
|
@ -107,13 +107,14 @@ function New-User() {
|
||||||
company_id = $company_id
|
company_id = $company_id
|
||||||
location_id = $location_id
|
location_id = $location_id
|
||||||
department_id = $department_id
|
department_id = $department_id
|
||||||
manager_id = $manager_id
|
|
||||||
jobtitle = $jobTitle
|
jobtitle = $jobTitle
|
||||||
employee_num = $employee_num
|
employee_num = $employee_num
|
||||||
notes = "Imported using SnipeitPS Script"
|
notes = "Imported using SnipeitPS Script"
|
||||||
activated = 1
|
activated = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($manager_id) {$Values.manager_id = $manager_id}
|
||||||
|
|
||||||
if ($ldap_user -eq $false) {
|
if ($ldap_user -eq $false) {
|
||||||
$ldap = @{
|
$ldap = @{
|
||||||
password = $password
|
password = $password
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue