Adrian Dinu

How to get user roles id in sugar 7.6.0

Discussion created by Adrian Dinu on Sep 10, 2015
Hi guys, 

From this post Disable record's creation
I know I can do app.user.get('roles') to get the roles of a user, but it returns the roles names,  rather than the ids,  which is unfortunate. 
Anybody knows how we can get the ids? Thanks!