Skip to main content

CreateUserDTO

firstNamestringrequired
lastNamestringrequired
emailstringrequired
phoneNumberstringrequired
passwordstringrequired

User password with at least 8 chars, uppercase, lowercase, number, and special char

Example: StrongP@ssw0rd
referralCodestring
rolestringrequired
profilePicturestring<binary>

Profile picture

adminCreationCodestring
departmentIdobject

Department to assign the user to. Must belong to the same tenant as the user; pass null to clear.

assignedSiteIdobject

Site to scope this user to (site-bound roles only — Mine Manager, Mine Engineer, Field Supervisor, Senior/Junior Safety Engineer). Must belong to the same tenant as the user; pass null to clear.

CreateUserDTO
{
"firstName": "string",
"lastName": "string",
"email": "string",
"phoneNumber": "string",
"password": "StrongP@ssw0rd",
"referralCode": "string",
"role": "string",
"profilePicture": "string",
"adminCreationCode": "string",
"departmentId": {},
"assignedSiteId": {}
}