Client Script $Crm.user.role returning undefined
Hey all!
I have a client script I'm trying to run based off of the user's role. I'm able to use the following:
var fname = $Crm.user.first_name;
To properly return a first name when logging in the console, but whenever I try the same with $Crm.user.role or any other field other than first_name and last_name all I receive is "Undefined."
Any clue why this might be?
Screenshots:

