Re: Accessing the ACL of a file?

From: Arild Bakken (arildb_@hotmail.com)
Date: 07/28/02


From: "Arild Bakken" <arildb_@hotmail.com>
Date: Sun, 28 Jul 2002 12:42:25 +0200


Hi,

It is possible, but not with the classes that come with the .NET framework.
You'll either have to write your own .NET managed class in C++ or find some
COM component that has the methods you need and import that into your
project.

Arild

"Christopher Zacharias" <czacharias@logicalsolutions.net> wrote in message
news:13f501c234ad$73e29190$a4e62ecf@tkmsftngxa06...
> Bottom line: Is it possible to query the ACL for a given
> file to determine if a given user has read permissions for
> the file without having to open the file or request the
> file?
>
> I made a post earlier about trying to predict whether a
> user will have access to a resource. I figured that maybe
> I should rephrase (after learning more about the subject)
> what specifically I mean.
>
> I would like to be able to dynamically hide controls and
> links to resources that a user does not have access to.
> That way, instead of seeing them and getting an "Access
> Denied" error when trying to request them, the users would
> simply never see the links to the resource to begin with.
>
> Thanks.
>
> - Christopher Zacharias
>