I am implementing a feature to display user roles on dashboard. I am using inbuilt parameter JSTACK.Keystone.params.access.user.roles in jstack.js. However, it only returns role as member and admin. Other roles which are assigned are not being listed using this parameter.
Please refer the screenshot.

Also, I came across another parameter as cloud_role in os-utils.js as shown below:

This parameter is commented in the code and also, this parmeter doesn not exist.
can anyone suggest some other method?
I am implementing a feature to display user roles on dashboard. I am using inbuilt parameter JSTACK.Keystone.params.access.user.roles in jstack.js. However, it only returns role as member and admin. Other roles which are assigned are not being listed using this parameter.
Please refer the screenshot.
Also, I came across another parameter as cloud_role in os-utils.js as shown below:
This parameter is commented in the code and also, this parmeter doesn not exist.
can anyone suggest some other method?