Accountname in Cube


We need to identify the current user within a cube. It looks like the session does not return the actual user executing the request from a dashboard.
Any inputs on how to resolve current user from within the cube would be greatly appreciated.



1 Like

Hello @atle.bjelland,

I do not fully understand your scenario but first you can use this script in order to take the account name of the users:
var x=dundas.context.currentSession.accountName.split("\")[1];
If you want to send the current account name to the cube you can use a placeholder inside the cube. The placeholder will be linked to the a dashboard parameter which will be always “filled” with the current user.
Another solution could be the following (if this is applicable for your case), you can add the column which contains the names of the users (if possible) and filter the data.