Board index » delphi » Det. group membership under NT Server

Det. group membership under NT Server

Hi,

Has anyone of you a solution for determining the network group(s) the
actual user belongs to. I have to want, if the current user is a
member of the Administarators group.

All I found in my recherche was a non functioning
NetUserGetLocalGroups() example :(

Thanks in advance

Paul

 

Re:Det. group membership under NT Server


Quote
>Has anyone of you a solution for determining the network group(s) the
>actual user belongs to. I have to want, if the current user is a
>member of the Administarators group.

>All I found in my recherche was a non functioning
>NetUserGetLocalGroups() example :(

 Are you members of the Administrators or Account Operators local group.
If you do not know, check if the value returned by NetUserGetLocalGroups is
equal ERROR_ACCESS_DENIED.

Dmitriy.

Re:Det. group membership under NT Server


In article <raLg3.2299$Qt1.2920@client>, DMikhel...@bcw-usa.com
says...

Quote

> >Has anyone of you a solution for determining the network group(s) the
> >actual user belongs to. I have to want, if the current user is a
> >member of the Administarators group.

> >All I found in my recherche was a non functioning
> >NetUserGetLocalGroups() example :(

>  Are you members of the Administrators or Account Operators local group.
> If you do not know, check if the value returned by NetUserGetLocalGroups is
> equal ERROR_ACCESS_DENIED.

Whow! Thta's as great as simple. I am a bit ashamed for not finding
this solution by myself ;-)

Thanks a lot

Paul

Other Threads