I need populate an array with a list of Users that ARE NOT PRESENT in a specific Role and COUNT the result.
At the moment I use this code, but I am not able to get the Users outside "CMS-ADMINISTRATOR " role.
Any idea how to do it and better write the Count section?
string[] usersInRole;
usersInRole = Roles.GetUsersInRole("CMS-ADMINISTRATOR");
int c = usersInRole.Count();
Not sure about getting users outside the "CMS-ADMINISTRATOR" role, but at least you can write the original code better like this: