Manual and programmatic configuration of Folders and Users
- Manual folders and users setup at Notepad
- Setup users and folders programmatically
Manual folders and users setup at Notepad
Manual folders setup (without Admin panel)
You can setup folders for users in the Data\Folders.xml file
(or in the FoldersXmlPath file, if specified).
It has XML format and you can use any text editor to edit it (e.g. Notepad).
If you don't know XML or have other problems with manual folders setup,
use the Admin panel online tool.
See available values of folders' paths, user names in the
Admin panel online tool description as well.
Below is the example of Folders.xml default content.
It provides access to "%APPROOT%\DemoFolder\Folder1" for demo user and
%APPROOT%\DemoFolder\Folder2 for admin group.
Setup users and folders programmatically
You can setup users, their authentication, permissions and folders programmatically.
I.e you don't need to use Admin panel and built-in XML files for storing data.
This is needed if you have own database of users or you want programmatically setup users and folders.
All you need is to edit open source Global.asax file.
Global.asax stores sample code to setup users and folders.
You should uncomment code in Application_Start event to use programmatic setup.
Below is the example of building list users, groups programmatically.