Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have a GUI Extension, I want to get the username and description of the user logged in to Tridion and clicked the GUI Extension in Ribbon bar.
In Anquilla you can use the following as an example:
var userSettings = Tridion.UI.UserSettings.getInstance();
You can user following for get the username & Description
var settings = Tridion.UI.UserSettings.getJsonUserSettings(true)
var userName = settings.User.Data.Name;
var description = settings.User.Data.Description
Required, but never shown