I have the following code that I have that attempts to get the list of all Identites, and then search through all of the indentities for two specific groups that I would like to deny access to, but it never finds the identity names I have that it checks for. Anyone have any idea on how to fix this?
string[] identityList = Aras.Server.Security.Permissions.Current.IdentitiesList.Split(new []{","}, StringSplitOptions.RemoveEmptyEntries);
var identityHash = new HashSet<string>(identityList.Select(id => id.Trim(new []{'\''})));
bool accessdenied = false;
for (int x = 0; x < identityList.Length; x++)
{
if (identityList[x].Equals("Group1Users"))
{
accessdenied = true;
}
else if (identityList[x].Equals("Group2Users"))
{
accessdenied = true;
}
}