Questions Tagged With rolehttps://answers.axonivy.com/tags/role/?type=rss&user=Tran%20Cuong%20Trucquestions tagged <span class="tag">role</span>enWed, 26 Feb 2014 05:16:00 -0500PermissionDeniedException when calling iUser.getAllRoles()https://answers.axonivy.com/questions/548/permissiondeniedexception-when-calling-iuser-getallroles<p>My call to </p> <blockquote> <p><code>aUser.getAllRoles();</code></p> </blockquote> <p>throws the exception:</p> <blockquote> <p>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</p> </blockquote> <p>I even tried with grant admin permisson to that user but still throws the same exception.</p>Tran Cuong TrucWed, 26 Feb 2014 05:16:00 -0500https://answers.axonivy.com/questions/548/permissiondeniedexception-when-calling-iuser-getallrolessecurityroleuser