...
To access identity information inside of agent routines, you must use session data. For instance, to access the user name inside of a routine, you will refer to it as follows: pjs.session.identity.name
. This can then be used to limit the data that is being accessed or updated by the agent can retrieve or process.
Client-side Implementation
...