Security

How do I determine the current logged-in user in Javascript?

Champion

How do I identify the username of the current, logged-in user via Javascript?

Tags (3)
0 Karma
1 Solution

Champion

The current logged-in user is available in Javascript within the $C.USERNAME global variable. Example:

alert($C.USERNAME);

View solution in original post

Champion

The current logged-in user is available in Javascript within the $C.USERNAME global variable. Example:

alert($C.USERNAME);

View solution in original post

Hi , how about the role of the user?

0 Karma

Champion
0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!