Discussion
Last activity: 4 Oct 2018 11:08 EDT
How get current user
Hello, how I can get current user and pass him to the Data transform?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
You can get current user information from Clipboard
1) When you select pxRequestor "SystemPage", you can find current user information is assigned to "pyUserIdentifier" property.
use "pxRequestor.pyUserIdentifier" property to get current user info.
Before using this property, define "pxRequestor" page and "Code-Pega-Requestor" class in Pages and Classes Tab.


IP Australia
AU
In most cases, pxRequestor page will work even if you don't define it in Pages & Classes.
pxRequestor page will contain a lot of information of currently logged in user, it could be user, agent or listener.
pxRequestor.pyUserIdentifier is User ID (Operator ID)
pxRequestor.pyUserName is User Name
When am running the rule from file listener am not getting values from pxRequstor page , is this because pxRequstor page won't be there during listener trace?
Please suggest.
How do we get Parent Requestor context from a child Requestor


Incessant technologies pvt ltd
IN
pxRequestor.pyUserIdentifier this value holds the Current user
You can get it using pxRequestor system page.
Define pxRequestor page of class Code-Pega-Requestor in Pages&classes tab.
Then read the value of pxRequestor.pyUserIdentifier property to get current user.