Using a PowerShell script to configure user permissions in bulk
If you wish to configure user permissions in MailStore on multiple users at the same time, there is no easy way to do this within the MailStroe Client
For example: if you have 30 MailStore users that all need access to different users MailArchives, you would have to configure this manually through the MailStore Client UI one by one whcih can be very time consuming.
To help speed up this process you can use the below PowerShell script to batch this operation by creating a pre-formatted CSV file with a list of users and the folders each user needs access to.
Steps:
- Ensure that the MailStore Administration API (HTTPS) Service is enabled in the Network Settings section of the Configure the MailStore Server Service configuration tool (there is a shortcut to this tool on the desktop of the MailStore Server)
- Download the zip file below and extract it onto the MailStore Server into a folder called C:\zen
- Edit the users.csv file to reflect the permissions needed
- Before running the PowerShell script, you must edit it and change the $adminpasswd to match the password you use for the default admin account in MailStore
- Open PowerShell, change folder into C:\zen and run set folder privileges for a user.ps1
Related Articles
Using a PowerShell script to rename archive folders in bulk
After moving between email providers or platforms you may find you need to rename a large number of archive folders. Doing this directly in the MailStore client can take minutes per folder as the database entries are updated in real time and so it ...
Using a PowerShell script to create MailStore users from a csv file
If you need to import a large list of users into MailStore but cannot use one of the User Directory Services you may think the only option is to add each user one by one through the MailStore Client interface. To help speed up this process you can ...
Importing Multiple PST files in MailStore using Python script
The MailStore API can be utilised to automate tasks that would be laborious to do manually. One such task is importing a large number of PST files for multiple Users. A good example of this is when you want to archive pre-existing Office 365 Archives ...
Explaining MailStore SPE Admin Accounts
MailStore SPE differs from MailStore Server in several ways. One of the key differences is to do with administrator access. In MailStore SPE there is a different level of administrator access for MSPs logins compared to customer administrator access ...
Rebuilding Damaged MailStore Database using gfix.exe tool
In some cases, it is possible to recover a MailStore Database file that has damage using the built-in Firebird database backup and recovery tool gfix.exe The location of the gfix.exe tool varies based on the version of MailStore: MailStore version 10 ...