Mira Admin Create icon

Mira Admin Create

Create a new administrator in Mira App Server

Mira Admin Create

AI-generated

Overview

The "Mira Admin Create" node is designed to create a new administrator user in the Mira App Server. It is useful in scenarios where you need to programmatically add admin users to manage the Mira application, such as during automated setup, onboarding processes, or bulk creation of admin accounts.

For example, an automation workflow could use this node to add multiple administrators with specific usernames, emails, and passwords without manual intervention.

Properties

Name Meaning
Token Source Choose where to get the access token from: either from stored credentials or input data.
Server URL The URL of the Mira App Server (required if token source is input).
Access Token Access token for authentication, can be provided directly or via input data (required if token source is input).
Username The username for the new administrator account (required).
Email The email address for the new administrator account (required).
Password The password for the new administrator account (required).

Output

The node outputs JSON data representing the response from the Mira App Server after attempting to create the administrator. This typically includes details about the newly created admin user or error information if the creation failed.

No binary data output is produced by this node.

Dependencies

  • Requires access to a Mira App Server instance.
  • Needs an access token for authentication, which can be supplied either via credentials configured in n8n or directly through input data.
  • The node uses HTTP POST requests to the /api/admins endpoint on the Mira server.

Troubleshooting

  • Authentication errors: If the access token is invalid or missing, the server will reject the request. Ensure the token is correct and properly supplied according to the selected token source.
  • Validation errors: Missing or invalid username, email, or password fields will cause the server to return errors. Verify all required fields are correctly filled.
  • Connection issues: If the server URL is incorrect or unreachable, the node will fail to connect. Confirm the server URL is accessible from the n8n environment.
  • Permission issues: The token used must have sufficient permissions to create administrators; otherwise, the request will be denied.

Links and References

  • Mira App Server API documentation (for /api/admins endpoint) — consult your Mira server API docs for detailed request/response formats and error codes.

Discussion