InviteTenantUserDto
firstNamestringrequired
Example:
JohnlastNamestringrequired
Example:
Doeemailstringrequired
Example:
john@rutongo-mining.co.rwphoneNumberstring
Example:
+250788123456userTypestringrequired
Possible values: [PLATFORM_ADMIN, TENANT_USER]
Example:
TENANT_USERroleNamestring
Role name (required for TENANT_USER)
Example:
mine_engineertenantIdstring
Tenant ID (required for TENANT_USER when called by super admin)
departmentIdstring
Department to assign the invited user to. Must belong to the target tenant.
assignedSiteIdstring
Site to scope the invited user to (site-bound roles only — Mine Manager, Mine Engineer, Field Supervisor, Senior/Junior Safety Engineer). Must belong to the target tenant.
InviteTenantUserDto
{
"firstName": "John",
"lastName": "Doe",
"email": "john@rutongo-mining.co.rw",
"phoneNumber": "+250788123456",
"userType": "TENANT_USER",
"roleName": "mine_engineer",
"tenantId": "string",
"departmentId": "string",
"assignedSiteId": "string"
}