I generally use role based settings, so my script would look like:
retVal = oSession.AsObject(oSession.Security).IsMember(""Admin"")
if retVal = 0 then
retVal = oScript.SetUIControl(""TERMSCODE"", ""DISABLE"")
end if
BTW, oSession.UserCode will return the user code.