Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations across multiple resources, including the Users Manager resource with the Set Super User Access operation. It allows users to grant or revoke superuser access for a specified user by sending appropriate API requests to the Matomo instance. This node is useful for managing user permissions programmatically within Matomo, such as automating user role updates or access control.

Use Case Examples

  1. Grant superuser access to a user by specifying their login and setting the 'hasSuperUserAccess' parameter to true.
  2. Revoke superuser access from a user by setting 'hasSuperUserAccess' to false for the specified user login.

Properties

Name Meaning
Query Parameters A collection of optional parameters to customize the API request, including 'hasSuperUserAccess' to grant or revoke superuser access, 'userLogin' to specify the user, and other Matomo API parameters.

Output

JSON

  • response - The JSON response from the Matomo API call, which may include confirmation of the superuser access change or error details.

Dependencies

  • Requires Matomo API credentials including domain URL and authentication token.

Troubleshooting

  • Ensure that the Matomo domain and authentication token credentials are correctly configured; missing credentials will cause an error.
  • Verify that the 'userLogin' parameter is correctly specified to target the intended user.
  • Check that the 'hasSuperUserAccess' parameter is a boolean to avoid request errors.
  • If the API returns an error, review the error message for details and ensure the Matomo API endpoint and method are correct.

Links

Discussion