Skip to main content
Solved

How to pass logged username to child processes FME Server?

  • August 4, 2017
  • 7 replies
  • 101 views

Forum|alt.badge.img

Hi,

In my FME Server, I published a "master" workspace with an admin user called psl. This master process basically invokes another FME workspaces through a FMEJobsubmitter.

When I run this process on the FME Server, the username is logged correctly only for the master process, but for the child process the username that is logged is psl.

How can I do that it logs the correct user for the child processes too?

Best answer by david_r

If you want to retrieve the active username used to run the master workspace, you can use the FME Server Parameter "FME_SECURITY_USER" in the FMEServerJobSubmitter:

However, as far as I know there's no way to get the associated password. I suspect that is for security reasons.

Be aware that the FME_SECURITY_USER parameter is defined as an empty string when running under FME Desktop.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

david_r
Celebrity
  • August 4, 2017

Which username have you specified in the FMEServerJobSubmitter?


Forum|alt.badge.img
  • Author
  • August 4, 2017

Which username have you specified in the FMEServerJobSubmitter?

it's psl..

david_r
Celebrity
  • August 4, 2017
it's psl..
There's your explanation :-)

 

The child job runs as the user specified in the FMEServerJobSubmitter.

Forum|alt.badge.img
  • Author
  • August 4, 2017
There's your explanation :-)

 

The child job runs as the user specified in the FMEServerJobSubmitter.
That's not the question

 

 


david_r
Celebrity
  • Best Answer
  • August 4, 2017

If you want to retrieve the active username used to run the master workspace, you can use the FME Server Parameter "FME_SECURITY_USER" in the FMEServerJobSubmitter:

However, as far as I know there's no way to get the associated password. I suspect that is for security reasons.

Be aware that the FME_SECURITY_USER parameter is defined as an empty string when running under FME Desktop.


Forum|alt.badge.img
  • Author
  • August 4, 2017

If you want to retrieve the active username used to run the master workspace, you can use the FME Server Parameter "FME_SECURITY_USER" in the FMEServerJobSubmitter:

However, as far as I know there's no way to get the associated password. I suspect that is for security reasons.

Be aware that the FME_SECURITY_USER parameter is defined as an empty string when running under FME Desktop.

Just to complement your answer I created another public parameter 'Password'. On the server side I enter it and it worked. Thanks

 

 


david_r
Celebrity
  • August 4, 2017
Just to complement your answer I created another public parameter 'Password'. On the server side I enter it and it worked. Thanks

 

 

Good to hear you found a solution. Just be aware that public parameters containing passwords will be visible in plain-text in the FME Server GUI / job logs, even if you define them of type password and they appear scrambled! According to Safe this is by design, the reason being that you should never send passwords as plain text if they are important to you, and I kinda agree with that.

 

So be aware that casual users might be able to stumble over someone elses password using this solution.