Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation retrieves a paginated list of user variables from a User resource. It is useful when you need to fetch custom or system-defined variables associated with a user in an external service, allowing you to manage or analyze user-specific data programmatically.

Practical examples include:

  • Fetching environment or configuration variables set for a user to customize workflows.
  • Retrieving user metadata for auditing or reporting purposes.
  • Integrating user variable data into other automation processes.

Properties

Name Meaning
Page The page number of results to return (1-based). Used for pagination to specify which subset of results to retrieve. Default is 0.
Limit The number of results per page (page size). Controls how many user variables are returned in one request. Default is 0.

Output

The output contains a JSON array of user variables corresponding to the requested page and limit parameters. Each item in the array represents a user variable object with its associated properties as defined by the external API.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential or similar authentication token configured in n8n to access the external service's API.
  • The base URL for the API must be provided via credentials.
  • The node sends HTTP requests to the external API endpoint /api/v1 with appropriate query parameters (page, limit) for pagination.

Troubleshooting

  • Empty Results: If no user variables are returned, verify that the specified page and limit values are correct and that the user has variables set.
  • Authentication Errors: Ensure that the API key or authentication token is valid and has sufficient permissions to read user variables.
  • Invalid Parameter Values: Passing negative or zero values for page or limit may result in errors or empty responses; use positive integers starting at 1 for page.
  • API Rate Limits: Frequent requests might hit rate limits imposed by the external API; consider adding delays or handling rate limit errors gracefully.

Links and References

  • Refer to the external service’s API documentation for detailed information on user variables endpoints and pagination.
  • n8n documentation on setting up API credentials and using HTTP request nodes for further customization.

Discussion