Actions26
Overview
This node integrates with the Dental Office Cloud API to manage users within a dental office system. Specifically, the "Usuário" resource with the "Criar" operation allows creating new user accounts in the system. This is useful for automating user management workflows such as onboarding new staff members or administrators.
Typical scenarios include:
- Automatically creating user accounts when new employees join.
- Syncing user data from other HR or CRM systems into the Dental Office platform.
- Setting up user roles and clinic associations programmatically.
For example, you can create a new user by providing their email, password, full name, user group (e.g., Administrator, Attendant, Dentist), associated clinics, addresses, and contact details.
Properties
| Name | Meaning |
|---|---|
| The user's email address (required). | |
| Senha | The user's password (required). |
| Nome | The user's full name (required). |
| Grupo de Usuário | The user group/role. Options: Administrador, Atendente, Dentista (required). |
| IDs das Clínicas | Comma-separated list of clinic IDs the user is associated with (optional). |
| Endereços | User's address attributes in JSON format (optional). |
| Contatos | User's contact attributes in JSON format (optional). |
Output
The node outputs the created user data as JSON. The structure corresponds to the response from the Dental Office API after successfully creating a user. It includes fields such as user ID, email, name, user group, associated clinics, addresses, contacts, and other metadata returned by the API.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential configured in n8n to authenticate requests against the Dental Office Cloud API.
- The node uses the
/v1/usersendpoint with HTTP POST method to create users. - Input JSON properties (
addressesAttributesandcontactsAttributes) must be valid JSON strings; otherwise, the node will throw an error.
Troubleshooting
- Invalid JSON Format: If the
EndereçosorContatosJSON inputs are malformed, the node throws an error indicating invalid JSON format. Ensure these fields contain properly formatted JSON strings. - Missing Required Fields: The node requires
Email,Senha,Nome, andGrupo de Usuário. Omitting any of these will cause the request to fail. - API Authentication Errors: If the API key credential is missing or invalid, the node will fail to authenticate with the Dental Office API.
- Clinic IDs Parsing: The
IDs das Clínicasfield expects comma-separated numeric IDs. Non-numeric values or incorrect formatting may cause errors.
Links and References
- Dental Office Cloud API Documentation (hypothetical link, replace with actual if available)
- n8n Documentation on Creating Custom Nodes
- JSON Validator Tools (for validating
EndereçosandContatosinputs)
If you need further details about other operations or resources, feel free to ask!