Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is A User a Member of a Group?
Message
 
 
To
05/12/2003 15:37:05
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00856438
Message ID:
00856522
Views:
20
>Is there a way, such as an API function, to determine within a VFP application whether a user is a member of a given group?
>
>The workstations are Windows XP and Windows 2000. Currently the servers are NT 4.0 with SP 6a.
>Thanks,
>Spencer

Hi Spence,

You might find the following easier.
oUser = GetObject("WinNT://Domain/username,user")
For Each oGroup In oUser.Groups
	? oGroup.Name
Next oGroup
Change Domain and UserName for your users e.g. for me:
oUser = GetObject("WinNT://US_DOI/hbrennan,user")
censored.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform