X Credentials X

List all Credentials IDs used in n8n workflows

Overview

This node lists credentials used across n8n workflows. It helps users identify which credentials are in use, optionally grouped by workflow or uniquely listed. This is useful for auditing, managing, or cleaning up credentials in an n8n instance.

Common scenarios:

  • Auditing all credentials currently used in workflows.
  • Grouping credentials by workflow to understand credential usage per workflow.
  • Getting a unique list of all credentials used across workflows to avoid duplicates.

Practical example:

  • An administrator wants to see all credentials used in workflows and which workflows and nodes use them, to ensure no unused or outdated credentials remain.

Properties

Name Meaning
Include Workflow Details Whether to include the workflow name and ID in the output.
Include Node Details Whether to include the node name and type that uses the credential.

The node also supports an Operation property (not listed in your input but visible in code) with these options:

  • List All Workflow Credentials
  • List Credentials by Workflow
  • Get Unique Credentials

Output

The output is an array of JSON objects representing credentials information:

  • For List All Workflow Credentials: Each item contains credential ID, credential type, and optionally workflow ID/name and node name/type depending on properties.

  • For List Credentials by Workflow: Each item groups credentials under a workflow, including workflow ID, workflow name, and an array of credentials with their IDs, types, and optionally node details.

  • For Get Unique Credentials: Each item contains only a unique credential ID.

If errors occur during execution and "Continue On Fail" is enabled, error details are included in the output JSON.

No binary data output is produced.

Dependencies

  • Requires an API key credential to authenticate requests to the n8n REST API.
  • The node makes authenticated GET requests to /rest/workflows endpoint to retrieve workflows and their nodes.
  • Requires the n8n instance to expose its REST API and the user to have permission to access workflow data.

Troubleshooting

  • Common issues:

    • Authentication failure due to invalid or missing API key credential.
    • No workflows returned if the n8n instance has none or insufficient permissions.
    • Unexpected response structure if the n8n REST API version changes.
  • Error messages:

    • Errors from the API request will be caught and can be output if "Continue On Fail" is enabled.
    • Typical errors include network issues, unauthorized access, or malformed responses.
  • Resolutions:

    • Verify API key credential is correctly configured.
    • Ensure the n8n REST API is accessible and the user has rights to list workflows.
    • Check network connectivity and API endpoint URL.

Links and References

Discussion