mittwald icon

mittwald

Interact with mittwald mStudio API

Actions409

Overview

This node operation creates a new SFTP user within a specified project on the Mittwald mStudio platform. It is useful for automating the management of SFTP access, allowing users to programmatically add SFTP users with defined permissions and directories. Typical use cases include provisioning SFTP accounts for developers or clients, setting up automated workflows that require secure file transfers, or managing access control in bulk.

For example, you might use this node to create an SFTP user with read-only access to certain directories for a client, or to create a full-access user for internal team members who need to upload and manage files.

Properties

Name Meaning
Project Id The unique identifier of the project for which the SFTP user will be created.
Access Level The permission level granted to the SFTP user. Options: "Read" (read-only access), "Full" (full access).
Authentication The method of authentication for the SFTP user. Can be either "password" or "public-keys".
Description A textual description of the SFTP user, useful for identification or notes.
Directories JSON array specifying directories the SFTP user can access.
Expires At Optional expiration date/time for the SFTP user's access.

Output

The node outputs JSON data representing the newly created SFTP user as returned by the Mittwald mStudio API. This typically includes details such as the user ID, assigned directories, access level, authentication method, description, and expiration information.

If the node supports binary data output, it would generally relate to key files or credentials, but based on the provided code and properties, the output is purely JSON.

Dependencies

  • Requires an API key credential for authenticating with the Mittwald mStudio API.
  • The node communicates with the Mittwald API endpoint at https://api.mittwald.de.
  • Proper configuration of the API key credential in n8n is necessary for successful requests.

Troubleshooting

  • Invalid Project Id: If the project ID does not exist or is incorrect, the API will likely return an error. Verify the project ID before running the node.
  • Authentication Method Errors: Providing an unsupported authentication method may cause failures. Ensure the value is either "password" or "public-keys".
  • Malformed Directories JSON: The directories property expects valid JSON. Invalid JSON syntax will cause parsing errors. Use proper JSON formatting.
  • Expired or Missing API Key: Authentication failures can occur if the API key is missing, expired, or invalid. Check the credential setup.
  • Access Level Issues: Using an unsupported access level value will result in errors. Use only "read" or "full".

Links and References

Discussion