How can I make my app access the description of user permissions (roles) ?
I can get all the users and the role names as:
const users = await read.getRoomReader().getMembers(‘GENERAL’);
users.forEach((user) => {
user.roles.forEach((role) => {
console.log(role); //prints role name
});
});
But, I am unable to read the role descriptions.
Alternatively, is there a way to access the API internally from app (without userId and Token) so as to call the “/api/v1/roles.list” API ?