0 Replies Latest reply on Mar 15, 2011 10:32 AM by Bart Matthaei

    Temporarily removing a Role from a User

    Bart Matthaei Newbie


      I want to revoke a role for the duration of the session. All roles have criteria that need to be met (role only granted during weekdays, for instance), and I want to check them after authentication, revoking any roles that haven't met it's criteria.

      What's the best way to do this? I've already tried running identity.removeRole(roleName), but the role still comes up when I run identityManager.getGrantedRoles().