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 User Access operation. It allows users to manage user access levels to specific websites within Matomo by setting permissions such as view, write, or admin. This is useful for administrators who need to control user permissions programmatically. For example, an admin can grant a user write access to a particular site or revoke admin access as needed.

Use Case Examples

  1. Grant a user 'write' access to a specific website by specifying the user login, site ID, and access level.
  2. Revoke a user's access to a site by setting the access level to none or removing the user from the site's access list.

Properties

Name Meaning
Query Parameters A collection of parameters to specify details for the API request, such as user login, site ID, and access level to set.

Output

JSON

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

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain and authentication token are correctly configured; missing these will cause the node to throw an error.
  • Verify that the user login and site ID provided in the query parameters are valid and exist in the Matomo instance.
  • Check that the access level specified is one of the allowed values (e.g., view, write, admin) to avoid API errors.
  • If the API returns an error, review the error message and stack trace provided by the node for troubleshooting.

Links

Discussion