Hello,
I had been using the following code in my custom extension. It no longer works in DNN 7.3x
*************
Dim oRoleController As New DotNetNuke.Security.Roles.RoleController()
Dim i As Integer = 0
Dim objUserList As ASPxEditors.ASPxComboBox = Me.lstUsers
Dim aryManagers As ArrayList = oRoleController.GetUsersByRoleName(Me.PortalId, "Manager")
For Each oUserInfo As DotNetNuke.Entities.Users.UserInfo In aryManagers
Dim strName As String = oUserInfo.FirstName.ToString & " " & oUserInfo.LastName.ToString
objUserList.Items.Add(strName)
Dim intValue As String = Convert.ToInt32(oUserInfo.UserID)
objUserList.Items(i).Value = intValue.ToString
i = i + 1
Next
*******
I'm having trouble getting the new RoleController.Instance.GetUsersByRole to work. Can anyone assist with the change I need to make in my code to get the users in a role returned?