delete user leantime api 10
This commit is contained in:
parent
a39ab3e8b8
commit
9472792d0d
@ -230,35 +230,33 @@ async function createLeantimeUser(userData: {
|
|||||||
id: 1,
|
id: 1,
|
||||||
params: {
|
params: {
|
||||||
values: {
|
values: {
|
||||||
firstname: userData.firstName,
|
'0': 0, // This will be set by Leantime
|
||||||
|
'1': userData.lastName,
|
||||||
|
'2': userData.firstName,
|
||||||
|
'3': leantimeRole,
|
||||||
|
'4': '', // profileId
|
||||||
|
'5': 'a', // status
|
||||||
|
'6': userData.email,
|
||||||
|
'7': 0, // twoFAEnabled
|
||||||
|
'8': 0, // clientId
|
||||||
|
'9': null, // clientName
|
||||||
|
'10': '', // jobTitle
|
||||||
|
'11': '', // jobLevel
|
||||||
|
'12': '', // department
|
||||||
|
'13': new Date().toISOString(), // modified
|
||||||
lastname: userData.lastName,
|
lastname: userData.lastName,
|
||||||
email: userData.email,
|
firstname: userData.firstName,
|
||||||
password: userData.password,
|
|
||||||
status: 'active',
|
|
||||||
role: leantimeRole,
|
role: leantimeRole,
|
||||||
phone: '',
|
profileId: '',
|
||||||
|
status: 'a',
|
||||||
|
username: userData.email,
|
||||||
|
twoFAEnabled: 0,
|
||||||
|
clientId: 0,
|
||||||
|
clientName: null,
|
||||||
jobTitle: '',
|
jobTitle: '',
|
||||||
jobLevel: '',
|
jobLevel: '',
|
||||||
department: '',
|
department: '',
|
||||||
clientId: 0,
|
modified: new Date().toISOString()
|
||||||
source: 'keycloak',
|
|
||||||
pwReset: false,
|
|
||||||
lastlogin: null,
|
|
||||||
created: new Date().toISOString(),
|
|
||||||
modified: new Date().toISOString(),
|
|
||||||
notifications: 1,
|
|
||||||
settings: '{}',
|
|
||||||
twoFAEnabled: false,
|
|
||||||
twoFASecret: null,
|
|
||||||
profileId: null,
|
|
||||||
expires: null,
|
|
||||||
session: null,
|
|
||||||
sessiontime: null,
|
|
||||||
wage: null,
|
|
||||||
hours: null,
|
|
||||||
description: null,
|
|
||||||
forcePwReset: false,
|
|
||||||
lastpwd_change: null
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user