Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set windows user's permissions programmatically
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01624742
Message ID:
01624751
Views:
63
>We are preparing to offer access to our vfp desktop app as a remote app, hosted in the cloud.
>
>Since it would be a multi-tenant server I want to limit a user's access to certain directories and actions. How can you do this programmatically?
>
>Thank you,
>
>Alex

PowerShell is going to be your friend here.

Setup a single folder per company. Setup a group that has access to that folder. Each company users is a member of the company group and nothing else.

Before creating the users there is a reg entry you can modify that will create the users personal folders in the company folder.

Fire up the calculator app as the user in your powershell script to get windows to create those user folders.

Use AppLocker to prevent the users from running any other programs.




BH
Brandon Harker
Sebae Data Solutions
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform