Actions27
- Public Administration Actions
- Public Actions
- Public Transactions Actions
- Get Indexes Account
- Post Indexes Account
- Get Indexes Categories
- Post Indexes Categories
- Get Indexes Customer
- Post Indexes Customer
- Get Invoices
- Patch Invoices
- Get Orders
- Post Orders
- Get Payments
- Patch Payments
- Get Indexes Status
- Post Indexes Status
- Get Indexes Tax Rate
- Post Indexes Tax Rate
- Get Indexes Vendor
- Post Indexes Vendor
Overview
This node interacts with a Public Administration API to create (POST) user resources. It allows sending detailed user information such as email, roles, and permissions to the API endpoint responsible for managing users within an organization or system.
Common scenarios include:
- Automating user account creation in administrative systems.
- Integrating user management workflows where new users need to be provisioned programmatically.
- Syncing user data from other platforms into a centralized public administration system.
For example, you might use this node to add a new accountant user with specific access restrictions by providing their email and role details.
Properties
| Name | Meaning |
|---|---|
| X Fields | An optional string mask to specify which fields should be returned or processed. |
| Body | JSON object containing user details to create, including: |
- companies_id: Array of company IDs the user is associated with (nullable entries). |
|
- admin: Boolean indicating if the user has admin privileges. |
|
- email: User's email address. |
|
- role: Role assigned to the user (e.g., "accountant"). |
|
- restricted: Boolean flag for restricted access. |
|
- limited: Boolean flag for limited access. |
|
- readonly: Boolean flag for read-only access. |
Output
The node outputs JSON data representing the response from the Public Administration API after attempting to create the user resource. This typically includes confirmation of the created user's details or error information if the operation failed.
No binary data output is involved.
Dependencies
- Requires an API key or authentication token configured in n8n credentials to authorize requests to the Public Administration API.
- The base URL for the API must be set in the node's credential configuration.
- The node uses standard HTTP headers (
AcceptandContent-Typeset toapplication/json) for communication.
Troubleshooting
- Invalid or missing authentication: Ensure that the API key or authentication token is correctly configured in the node credentials.
- Malformed JSON body: Verify that the JSON provided in the Body property is valid and matches the expected schema.
- Missing required fields: Check that mandatory fields like
emailandroleare included and properly formatted. - API errors: If the API returns errors, inspect the response message for details such as permission issues or invalid company IDs.
- Empty or null company IDs: The
companies_idarray should contain valid identifiers; null values may cause request failures depending on API validation.
Links and References
- Refer to the Public Administration API documentation for detailed information on user resource creation endpoints and field requirements.
- Consult n8n documentation on how to configure API credentials and handle JSON input properties.
