AnsweredAssumed Answered

Get User Roles in RequireJs dashboards.

Question asked by B548L0PB on Jul 30, 2018
Latest reply on Jul 31, 2018 by Duarte Leao


I need to get logged User info (name & roles) in RequireJs Dashboards.

 

It was so easy in non RequireJs ones, like this:

user = Dashboards.context.user;
roles = Dashboards.context.roles;

 

But with requireJs checked I only can find user name:

user = requireCfg.config["pentaho/context"].user.id

 

How can I get user roles?

Outcomes