Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations related to user management and other Matomo resources. Specifically, for the 'Users Manager' resource and the 'Get Available Roles' operation, it fetches the list of available user roles from the Matomo instance. This is useful for scenarios where you need to manage user permissions or roles programmatically within Matomo, such as automating user role assignments or auditing roles.

Use Case Examples

  1. Fetch all available user roles to display in an admin dashboard.
  2. Automate role assignment workflows based on external criteria by retrieving available roles first.

Properties

Name Meaning
Query Parameters Optional query parameters to filter or modify the API request for fetching available roles. These parameters can include various filters and options supported by the Matomo API for the Users Manager resource.

Output

JSON

  • json - The JSON response from the Matomo API containing the list of available user roles.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly configured in the node credentials; missing these will cause authentication errors.
  • Verify that the user associated with the authentication token has sufficient permissions to access user roles in Matomo.
  • If the API response is empty or unexpected, check the query parameters for correctness and compatibility with the Matomo API version used.

Links

Discussion