This is completely experimental, likely prone to breaking and may put your n8n in an unexpected state. But if you have access to the n8n DB, you can actually set two or more owners for the same workflow, and also do the same with credentials.
This workflow sets up some webhook endpoints (with basic auth):
-
get-users
: return a list of users and their IDs -
get-workflows
: returns a list of workflows, their IDs, and their owner -
share-workflow
: this takes auserId
and aworkflowId
then shares that workflow with that user, including any of the linked credentials.curl -u user:pass https://n8n.example.com/webhook/share-workflow -d "userId=abcd-wxyz&workflowId=123"
Again, YMMV: