...
To access identity information inside of your 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 data that the agent can retrieve or process.
...