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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...