pjs.getUser()
The pjs.getUser() API returns the Profound.js Spaces or IBM i user name.Â
This API was added in Profound.js 4.9.0
Parameters
None
Return Value
The Profound.js Spaces or IBM i user name, if signed in, otherwise the return value is null.
If the Profound.js Spaces workspace is called from IBM i using the NODERUN command, then the IBM i user name is returned.Â
If used in a Profound.js instance that is configured to access Connector APIs on a remote IBM i instance, then the IBM i user name is returned.Â
If the Profound.js instance is running on IBM i and the module is run using profoundjs.express(), then the user name will not be available until after the first API call that accesses IBM i data/objects due to delayed log in.
var user = pjs.getUser();