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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

How to retrieve a windows/system username ?


Level 3

Hi everyone,

Is there any javascript property or method to retrieve the system/windows username.

Thanks in Advance.

4 Replies


Level 10


You can!

When you drag the workflow fields tot he form, there will be a hidden AWS_ASSIGNED_ID field..

which will have the principal id of the user as per the MySql definition..

pass this value to a web service and get the user name from the tb_principal_entity table from MySql

All these can be done thought Javascript and a simple web service coding..



Level 3

Hi Nith,

Thanks a lot !! for the suggestion.

Can we do only with Javascript, without using webservices and MySql. And what are the workflow fields ?

Thanks for the help !!


Level 10

Workflow fields are the one which are mandatory in order to submit your form

to the Adobe workflow..

And Javascript is designed specifically for client side scripting ; Though

you could perform some asychronous calls, you can't achieve all with just


Or explain me your scenario clearly, i will try to help you..



Level 3

Hi Nith,

Thanks for the reply.

The requirement is, by clicking on submit by email button, in MS Outlook 'CC' address the windows/system username should display.

Thanks in Advance !!

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now