hi everyone,
i’m building a “linter” workflow that audits other workflows in our n8n instance for best practices. to make it useful, i need to notify the owner if a workflow needs changes.
when i fetch a workflow’s data (using either a trigger or the “get a workflow” node), i’m struggling to reliably get two pieces of information:
- creator/last editor’s email: how can i find the email address of the user who created or last modified the workflow? i need this to send them a notification. is there a direct property for the user’s email, or do i need to get a user id and then query the users api?
- project information: how can i determine which project a workflow belongs to? specifically, i need to know:
- the project’s name.
- whether the workflow is in a user’s personal workspace or a shared organization project.
i’ve tried using the expression $('get a workflow').item.json.shared[0].project.name
, but i’m not sure if this is the correct approach or if it will work for workflows in personal spaces (not shared).
what is the recommended way to reliably get this metadata?
thanks for the help.