Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Getting Current User ID

Avatar

Former Community Member
Hi all



I have a very simple and basic question. I have a simple form with

only one field. What I want is to populate this single field with the

current User ID of workspace. How do I accomplish that?



Thanks in advance.

synaqvi
1 Reply

Avatar

Former Community Member
UndeIn Designer, under the Custom palette there is a Process Fields object. This object contains a number of fields that the process engine uses to keep track of the state of the process. Drop this object onto your form (there are a number of hidden fields). The AWS_ASSIGNED_ID has the GUID of the user that the task is assigned to. You can take that value and use the as input into the User Lookup service under the Foundation category to get the uid or username or whatever you want.