system.security.getRoles() returns empty list

:scratch:

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.

:unamused:
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:

[System]Client/User/RolesString
[System]Client/User/RolesDataSet