Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Custom Fields → Adds Managers For A Specific Custom Field Value

AI-generated

Overview

This node operation allows you to add managers for a specific custom field value within an account. It is useful in scenarios where you want to assign or update managerial roles linked to particular custom field values, enabling fine-grained control over access or responsibilities based on custom data attributes.

For example, if you have a custom field representing project teams and want to designate certain users as managers for a specific team (custom field value), this operation facilitates that assignment programmatically.

Properties

Name Meaning
Account Id Identifier of the account where the custom field exists.
Custom Field Id Identifier of the custom field to which managers will be added.
Custom Field Value Id Identifier of the specific value within the custom field for which managers are assigned.
Body JSON object containing additional data required by the API to add managers.

Output

The node outputs JSON data representing the result of the operation, typically confirming the addition of managers to the specified custom field value. The exact structure depends on the API response but generally includes details about the updated custom field value and its associated managers.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authentication with the external service managing custom fields.
  • The node expects the base URL and authentication credentials to be configured in n8n credentials.
  • The request body must be provided as valid JSON.

Troubleshooting

  • Invalid or missing identifiers: Ensure that Account Id, Custom Field Id, and Custom Field Value Id are correct and correspond to existing entities in the system.
  • Malformed JSON in Body: The Body property must contain valid JSON; otherwise, the request will fail.
  • Authentication errors: Verify that the API key or authentication token is correctly set up in n8n credentials.
  • API endpoint issues: If the API base URL or endpoints change, update the credentials or node configuration accordingly.

Common error messages might include:

  • "Resource not found" — check IDs.
  • "Unauthorized" — verify credentials.
  • "Invalid JSON" — fix the body content.

Links and References

  • Refer to the external API documentation for managing custom fields and assigning managers.
  • n8n documentation on using JSON input properties and configuring API credentials.

Discussion