Class SecurityTutorial.PrivilegedRoutineExample
{
ClassMethod PrivilegedRoutineEx(){
Write !, "Welcome to the Privileged App Routine"
Write !, "User before: ", $USERNAME
Write !, "Roles before: ", $ROLES
New $ROLES
Set status=$System.Security.AddRoles("MyPrivilegedRoutineApplication")
Write !, "User after: ", $USERNAME
Write !, "Roles after: ", $ROLES
}
}