Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is A User a Member of a Group?
Message
 
 
À
05/12/2003 15:37:05
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00856438
Message ID:
00856522
Vues:
19
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform