getAuthenticatedUser method
Information noteSTABLE.
This API is reliable and breaking changes are unlikely.
This API is reliable and breaking changes are unlikely.
Information noteThe getAuthenticatedUser method is only applicable to Qlik Sense Enterprise on Windows. This method relies on the Qlik Sense Proxy Service, which is a service that only exists in Qlik Sense Enterprise on Windows. Consequently, it cannot be used in Qlik Sense Enterprise SaaS.
qlik.global.getAuthenticatedUser(callback)
Gets information (user directory and user id) about the authenticated user.
Version history
Version state | Details |
---|---|
Introduced | 1.1 |
Parameters
callback
Type: Function
Optional.
Callback method. Registers a callback that is executed every time data is returned.
Returns
A promise of a Qlik associative engine reply.
Tip noteFor more information regarding a promise, see The Promise API.
Example
var global = qlik.getGlobal(config);
global.getAuthenticatedUser(function(reply){
alert('User:'+reply.qReturn);
});