Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding NT Users and Groups and Other Related Tasks
Message
From
09/03/1998 18:05:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Adding NT Users and Groups and Other Related Tasks
Miscellaneous
Thread ID:
00083508
Message ID:
00083508
Views:
63
I have a need to be able to have a VFP app add users and local groups to an NT domain. The app runs in an administrative context so there's no rights issue. I can run (very) basic commands like:

RUN NET USER username password /ADD

from a VFP application, but this gives me very little control (such as to know if the command failed). I was wondering if there are any standard API calls that could do the following:

- check if a user name already exists (so I don't try to add one with same name)

- add a user account (with some return value indicating success/failure)

- check if a user is a memeber of a local group

- add a user to an existing local group

- (extra credit) figure out if a specified user has rights to a specified resource (like a file)

If this stuff is possible and you have a good reference, I would be most appreciative.

TIA,

-- Randy
Next
Reply
Map
View

Click here to load this message in the networking platform