Gefe, Jefe, and Supervisor roles can create users, and each can only create users of roles lower than their own.
Endpoint: USERS service — https://script.google.com/macros/s/AKfycbxAqyEcAHetH6yN4qccGILL-L3IzMSPVuVJ1kpuO86GqfDXTKP8cHrrB7UkKN1r_0g5/exec
Action: createUser
The server generates the final username automatically if the provided
Nombre_Usuario conflicts with an existing one — it appends a numeric suffix (e.g., juan.perez → juan.perez1). Always check the returned message to confirm the actual username created.| Creator role | Roles they can create |
|---|---|
Desarrollador | Desarrollador, Gefe, Supervisor, Tecnico, Tecnico_exterior |
Gefe / Jefe | Supervisor, Tecnico |
Supervisor | Tecnico |
Request
Must be
"createUser".The active session token of the user performing the creation. Used to verify role permissions.
Object containing the new user’s details.
Response
"success" on success, "error" on failure.On success:
"Usuario '<username>' creado." where <username> is the actual (possibly de-duplicated) username assigned.