Does anyone have any code for this?

The problem is this:

I am ALREADY logged onto the domain, I just need to read the access permissions to make sure the user has the correct access.

Any help would be great!

Trek