Zammad icon

Zammad

Consume Zammad REST API

User Access Token → Create

AI-generated

Overview

This node operation creates a User Access Token in the Zammad system via its REST API. It allows users to generate access tokens with specific labels, expiration times, and permissions, which can be used for authenticated API access or integrations. This is useful for automating token management or integrating Zammad with other systems securely.

Use Case Examples

  1. Create a user access token with a label 'IntegrationToken', set it to expire in 30 days, and assign permissions like 'read' and 'write' to control access scope.
  2. Generate a temporary access token for a support agent with limited permissions to access certain resources in Zammad.

Properties

Name Meaning
Authentication The authentication method to use for the API request (Basic, OAuth2, or Token Authentication).
API The API to use, either REST API or CTI API.
Label The label for the user access token, used to identify the token.
Expires At The expiration date and time of the user access token.
Permissions A collection of permissions assigned to the access token, defining what actions the token can perform.

Output

JSON

  • id - The unique identifier of the created user access token.
  • label - The label assigned to the user access token.
  • expires_at - The expiration timestamp of the user access token.
  • permission - An array of permissions assigned to the user access token.

Dependencies

  • Zammad REST API

Troubleshooting

  • Ensure the authentication credentials are correctly configured and have sufficient permissions to create user access tokens.
  • Verify that the 'Expires At' date is valid and in the future; otherwise, the API may reject the request.
  • Check that the permissions array is correctly formatted and contains valid permission strings recognized by the Zammad API.
  • Common error messages include authentication failures, invalid input data, or permission denied errors. Review API response messages for details and adjust parameters accordingly.

Links

Discussion