In the days of ASP we would use the PermissionChecker Object. Here is a code snippet that I was experimenting with about 5 months ago.
<codebehind snippet> PermissionCheckerClass pmck = new PermissionChecker.PermissionCheckerClass(); bool joe; try { joe = pmck.HasAccess("/AuthProof6/WebForm2.aspx"); } catch (System.InvalidCastException err) { Response.Write ("<BR><HR>" + err.Message + "<BR>" + "<hr><br>"); joe = false; } if (joe != true) { HyperLink1.Visible = false; } </codebehind snippet> The bad part about this was that I had to set aspCompat="True" in the page directive. PermissionChecker is marked both in the registry for threading but I would receive an error each time I tried to exercise the object in a page with out aspCompat="True" set. The com component is located in C:\Windows\System32\inetsrv\PermChk.dll. Maybe someone out there has a better way. I never got a chance to research this anymore. Eventually it will come back up. -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Bob Edwards Sent: Tuesday, May 28, 2002 2:47 PM To: [EMAIL PROTECTED] Subject: [DOTNET] dynamically determining which roles have access to a folder/file Is there a way to determine which roles have access to a directory? You can set that a given folder can only be accessed by, for example, Manager or Employee, is there a way to examine a directory and tell which roles have access? Thanks. Bob. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.