Sateesh Telaprolu
Sateesh Telaprolu

Reputation: 150

Can i read the logged in user name in nifi processor or any component?

I would like to know, can i read the logged in user via nifi interface or the user who configured the processor in the onTrigger method or any other way that i can access the user information in nifi? or can i access from any context service by tweaking the code?

Upvotes: 0

Views: 789

Answers (1)

Bryan Bende
Bryan Bende

Reputation: 18630

A processor should not need to know anything about a user who accessed the NiFi web UI.

A user configures and starts a processor, but once the processor is running NiFi has no idea (nor should it) about the user that started that processor.

The processor runs on behalf of the NiFi framework, and some processors allow providing an identity to interact with external systems. For example, processors that authenticate to an external system via Kerberos will take a principal and keytab, they run as the principal when interacting with the external system.

Upvotes: 5

Related Questions