getAuthenticatedUser method

Note: STABLE.
This API is reliable and breaking changes are unlikely.

qlik.global.getAuthenticatedUser(callback)

Gets information (user directory and user id) about the authenticated user.

Version history

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: For more information regarding a promise, see https://code.angularjs.org/1.7.0/docs/api/ng/service/$q#the-promise-api.

Example

var global = qlik.getGlobal(config);
	global.getAuthenticatedUser(function(reply){
		alert('User:'+reply.qReturn);
	});

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?