Security

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

LukeMurphey
Champion

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

Tags (3)
0 Karma
1 Solution

LukeMurphey
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

LukeMurphey
Champion

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

alert($C.USERNAME);

jarize_loyola
Engager

Hi , how about the role of the user?

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...