returns empty list


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 I get an empty list. However when I use‘uname’,‘pwd’,‘provider’) it returns the list I am looking for. I am using the internal security for simplicity.

Update when I log in with a user that has only one role it works ok???

You may want to look at these tags for info if you are wanting it after they are logged in: