Jump to content
chkaufmann

Find groups for current windows user

Recommended Posts

When a user starts my application, I would like to know all groups assigned to that user. On the command line I can do this:

 

dsquery user -samid "christian.kaufmann" | dsget user -memberof -expand

 

Now I have a delphi function I could use to run this call and then parse the input. But before I start to implement that I would like to know:

- Is a regular user allowed to call this in order to read that information?

- Is there another way to get this info from the system?

- Or are only administrators allowed to read this information?

 

The background is, I would like to show the user a list of available projects based on the groups he is a member of.

 

Christian

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×