How to find a list of users belong to a specific role?
I'm facing a problem that I have to retrieve a list of user belong to a specific group.
I tried various methods that are mentioned on this site but no luck.
I just throws me an error like:
PermissionDeniedException: Session 1 (cuongtruc.tran) is not allowed to call method public java.util.List ch.ivyteam.ivy.security.internal.User.getAllRoles().
The session does not fulfill the permission rule SESSION (MATCHES THIS AND OWNS UserReadOwnRoles PERMISSION) OR OWNS UserReadRoles PERMISSION OR OWNS UserReadRoles@SYSTEM PERMISSION
IvyScriptMethodInvocationException: Error calling method getAllRoles() on an object of class ch.ivyteam.ivy.security.internal.User. Reason: ch.ivyteam.ivy.security.PermissionDeniedException: Session 1 (cuongtruc.tran) is not allowed to call method public java.util.List ch.ivyteam.ivy.security.internal.User.getAllRoles().
The session does not fulfill the permission rule SESSION (MATCHES THIS AND OWNS UserReadOwnRoles PERMISSION) OR OWNS UserReadRoles PERMISSION OR OWNS UserReadRoles@SYSTEM PERMISSION
IvyScriptRuntimeException: IvyScript Runtime Exception in...
I even tried with grant admin permisson to that user but still no luck :(.
Please help me.
Thanks
Tran Cuong Truc.