Operations Orchestration Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to get the logged in users name? HPOO 10

SOLVED
Go to solution
DBR
Frequent Visitor

Is there any way to get the logged in users name? HPOO 10

Is there any way to get the logged in users name? HPOO 10

I know they removed "Logged-In User Credentials" but it looks like they also made the Global variable "execution-userid" no longer usable.

I need to know the person who is running the flow.

Thanks,
Don

5 REPLIES
Frisendal
Super Collector

Re: Is there any way to get the logged in users name? HPOO 10

Use ${execution_userid}. It works for me in 10.02.

 

HTH,

Emil

 

HP Software OO RnD, Community Assistance Team, https://hpln.hp.com/group/operations-orchestration
DBR
Frequent Visitor

Re: Is there any way to get the logged in users name? HPOO 10

Emil,

 

That is what I tried.  I just had a dash instead of an underscore in the post.

 

Every time I run a flow using that variable it give me "dummy_user" for the value.  That is also the value that shows up in the "Global Context".

 

We are using all of the "Latest" content packs from Live Network and are running 10.02.

 

Thanks,

Don

 

 

 

Frisendal
Super Collector

Re: Is there any way to get the logged in users name? HPOO 10

In Studio it shows dummy_user since Studio is not longer logging in to Central. Running the flow on Central will indeed show the correct username.
HP Software OO RnD, Community Assistance Team, https://hpln.hp.com/group/operations-orchestration
DBR
Frequent Visitor

Re: Is there any way to get the logged in users name? HPOO 10

Emil,

It that is true how do we do any testing in Studio for our flow code?

I need the user name to do a lot of different steps.

Thanks,
Don
Highlighted
DBR
Frequent Visitor
Solution

Re: Is there any way to get the logged in users name? HPOO 10

I received the below response from HP support.

 

In order to enable the authentication in Studio, you should following the next steps.

 

  • Close Studio
  • Go to the folder < installation path >/studio/conf
  • Back up the Studio.properties
  • Open the Studio.properties and look for “engine.connection.authenticated” change it to true.
  • Open Studio.

 

This will pop up a login screen for user ID and password.  You can enter anything and it will work.  The execution_userid will be populated with the user ID you entered.

 

Don

 

//Add this to "OnDomLoad" event