I am trying to set up some security in a project of mine. As part of that I need to look at the role that the current user has. When I use system.security.getRoles() I get an empty list. However when I use system.security.getUserRoles(‘uname’,‘pwd’,‘provider’) it returns the list I am looking for. I am using the internal security for simplicity.