Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Get authenticated user in short-lived Workbench process

Avatar

Level 3

To invoke a REST endpoint I'm required to login as this seems to be a protected resource.  In the short-lived process I would like to get the name of the logged-in user but new com.adobe.idp.Context().getAuthenticatedUser() returns null.  LC runs in the turnkey JBoss server on Windows 2003 Server with SQLServer as the LC repository.

2 Replies

Avatar

Level 10

Can you try the following expression?

String loggedInUserOID = patExecContext.getProcessDataStringValue("/process_data/@creator_id");

// You should get the logged in user's unique id from the above expression.

Nith

Avatar

Level 3

http://forums.adobe.com/message/3366581 has the answer.  The creator_id process variable is just a long cryptic string but you can use it to query the edcprincipalentity table to get the commonname and email for the logged in user.