Quantcast
Channel: Software Communities : Popular Discussions - ActiveRoles
Viewing all articles
Browse latest Browse all 1277

Current user (whoami)

$
0
0

Hello,

 

Any assistance on this would be greatfully received!

 

Scenario:

 

Delegated Admin via Web Interface


Clicks New User form/command.

 

Desired State

 

At this point, after the admin clicks New User I want to find out who they are and hold it in a variable or VA that I can call during the New-User wizard or after the creation.

 

Current Situation:

 

Currently, all my efforts have only been able to find the Service Account of ARS

 

I am firing a ps script that is in the Provisioning Policy and using:

 

functiononGetEffectivePolicy($Request)

{

  $Request.Whoami


 

"onGetEffectivePolicy" or"onPreGet" seem to be the only handlers I can find that will fire the script when an admin clicks the New User command in the Web Interface.

 

Both return the ARS Service Account. How can I get the current delegated admin, instead?

 

---------

 

Thanks in Advance!

 

 

Phil


Viewing all articles
Browse latest Browse all 1277

Trending Articles