access user info in javascript?

Anyone with a quick pointer on how to access {{$User.userName}} in javascript?


You’re the best, Pat!

Also, see the docs on the $User global merge variable, which mention that this data is sources from the skuid.utils.userInfo object in JavaScript.

skuid.utils.userInfo.userName will give you a User’s Username, something like “ will give you a User’s Full Name, something like “Joe Smith”

Nice. I should have looked at the documentation more carefully!

Yeah… Pat gave me what I actually wanted, despite the fact that I asked for the wrong thing!