So I know this question has been asked a lot over the years, but it seems the method has changed a bit as well.
Anyway, my reason for posting is that the following code when executed in DNN v9.02.00, returns an exception of
DotNetNuke.Security.Roles.RoleController' does not contain a definition for 'GetUserRolesByRoleName'
code used:
var rc = new DotNetNuke.Security.Roles.RoleController();
var al = rc.GetUserRolesByRoleName(0, "UserRoleName");
Anyone else know the current recommended method to get this info? Thanks