Using custom user attributes

In the sample script below, we are defining that only users where IsFull_TimeEmployee (the custom user attribute) equals true can launch the application.

var um = module("User");
var u = um.GetUserData(null);
var IsFull_TimeEmployee = u.IsFull_TimeEmployee;
policy.Locked = true;
if(IsFull_TimeEmployee){
    trace("userisfulltime");
    policy.Locked = false;
    }