Authentication Context Within Flows

I'm running into an issue w/ Node-Red authentication. Context:

  • I have JSON data coming from a data source with tags filtered by roles. I.e., role A can only see tags X, Y, Z and role B can see tags A, B, C.
  • I want to write a function to let the user in the logged in role to only see tags they want to see.

I tried testing this out with just the OOB user login (not roles) but then quickly realized that the authentication in mechanism in Node Red does not have access to the flows context. So, the flows don't know whose logged in. Is there a way, within a flow, to view the logged in user via Flow Forge?

Also, is there a better approach to what I'm attempting to do?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.