how to find a page's access group

 

Hi fellow episervians

 Can anyone give me a hint to, how i find all the groups that have access to a specific page?

 Thanks in advance.

/Martin

#27081 Jan 16, 2009 11:54
  •  

    Hi,

     Try this:

    foreach (KeyValuePair<string, AccessControlEntry> ent in CurrentPage.ACL)

    {

    if (!ent.Value.EntityType.Equals(SecurityEntityType.Role)) continue;

    string groupName = ent.Value.Name;

    }

    #27083 Jan 16, 2009 12:24
  •  

    thanks for the reply m8, but could you supply the code in .net 1.1 c# please? Sorry for not mentioning that earlyer.

     /Martin

    #27084 Jan 16, 2009 12:39
  •  

    Hi again

    I've found a work-arround, but thanks for your help m8. Much appriciated.

    /Martin

    #27094 Jan 16, 2009 14:32