Link to home
Start Free TrialLog in
Avatar of Éric Moreau
Éric MoreauFlag for Canada

asked on

NT users accounts and groups

Using API, I know how to retrieve UserName, FullName and Description from the UserManager applet. But what I need to know now is to which groups they belong to.
Avatar of ameba
ameba
Flag of Croatia image

Maybe you'll find something here:
http://www.netfokus.dk/vbadmincode/codevb.html
Avatar of mmips
mmips

Use NetGroupGetInfo it works the same way for users...

NetGroupGetInfo
The NetGroupGetInfo function retrieves information about a particular global group in the security database.


NET_API_STATUS NetGroupGetInfo(
  LPCWSTR servername,
  LPCWSTR groupname,  
  DWORD level,        
  LPBYTE *bufptr      
);

See Also
Network Management Overview, Network Management Functions, Group Functions, GROUP_INFO_0, GROUP_INFO_1, GROUP_INFO_2, NetGroupSetInfo, NetApiBufferFree

ASKER CERTIFIED SOLUTION
Avatar of danelroisman
danelroisman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Éric Moreau

ASKER

I'll check that tonight and will come back!
Thank you danelroisman!
I'm always happy to help you.