- Store the username
un
, first namefn
, last nameln
, user rolesrs
, user departmentdt
, time when this JSON string was created in UtcTicksut
(number of 100-nanosecond intervals that have elapsed since 12:00:00 midnight on January 1, 0001), and expiry timete
in minutes in a JSON string:
{
"un":"John.Citizen",
"fn":"John",
"ln":"Citizen",
"rs":["Administrator","AlertAdmin","ClientAdmin"],
"dt":"HumanResources,IT",
"ut":637277353891062353,
"te": 30
}
2. Store this JSON string in the JavaScript variable in a[d].user_id
a[d] || (a[d] = {}), a[d].user_id = `{username}`