mittwald icon

mittwald

Interact with mittwald mStudio API

Actions409

Overview

This node operation "App Set Database Users" allows you to assign or update the database users associated with a specific app installation and database. It is useful in scenarios where you need to manage user access permissions programmatically for databases linked to an application, such as automating user provisioning or synchronizing user lists from external systems.

Practical examples include:

  • Automatically updating database user access when onboarding new team members.
  • Synchronizing database user permissions based on changes in an external identity provider.
  • Managing database user assignments during deployment or configuration updates of an app.

Properties

Name Meaning
App Installation Id The unique identifier of the app installation for which database users are being set.
Database Id The unique identifier of the database whose users are being managed.
Database User Ids A JSON object representing the list or mapping of database user IDs to assign to the database. This should be provided as a valid JSON string.

Output

The node outputs JSON data reflecting the result of setting the database users for the specified app installation and database. The exact structure depends on the API response but typically includes confirmation of the updated user assignments or any relevant status messages.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the mittwald mStudio API.
  • The node uses the mittwald mStudio API endpoint at https://api.mittwald.de.
  • Proper configuration of the API authentication credentials within n8n is necessary.

Troubleshooting

  • Invalid JSON in Database User Ids: Since the databaseUserIds property expects a JSON string that is parsed before sending, invalid JSON formatting will cause errors. Ensure the JSON is well-formed.
  • Authentication Errors: If the API key credential is missing or invalid, the node will fail to authenticate. Verify that the API key is correctly configured.
  • Missing Required Fields: Omitting required properties like appInstallationId or databaseId will cause the request to fail. Make sure all required inputs are provided.
  • API Rate Limits or Network Issues: Temporary failures may occur due to network problems or API rate limiting. Retrying after some time or checking network connectivity can help.

Links and References

Discussion