How can end users recover their own Microsoft 365 data through Microsoft OAuth Login?
CubeBackup administrators/operators can backup or restore data for any users in the Microsoft 365 organization. However, it is often advantageous, especially in large organizations, to allow end users to individually find and recover Microsoft 365 files or emails by themselves.
Enable self-service recovery for Microsoft 365 backups
Please follow the instructions below to enable Microsoft OAuth login for all users in your Microsoft 365 organization, so that end users can restore their Microsoft 365 data without asking for the administrator:
- Log (or SSH) into your backup server.
Open the configuration file <installation directory>\etc\config.toml on the backup server using a text editor.
On Windows, the default installation directory is located at C:\Program Files\CubeBackup365.
On Linux, the default installation directory is located at /opt/cubebackup365.
In the [Web] section and change the value of
true. If your config.toml file doesn't contain a
EnableOAuthLoginline, you will need to create one.
[Web] ... EnableOAuthLogin = true ...
Restart the CubeBackup service using the following command.
Please run this command.
sudo /opt/cubebackup365/bin/cbsrv restart
Open a Command Prompt as Administrator, and run this command.
"C:\Program Files\CubeBackup365\bin\cbsrv.exe" restart
Open the Windows PowerShell as Administrator, and run this command.
& "C:\Program Files\CubeBackup365\bin\cbsrv.exe" restart
Please run this command to restart the container.
sudo docker restart <container-name>
Share the CubeBackup portal URL to end users
Now you can let everyone know the domain URL or the backup server IP of the CubeBackup portal, so that end users can use their own Microsoft work or school accounts to log in to the CubeBackup web dashboard, where they can view their backup files and emails, and perform a self-service recovery on their Microsoft 365 data.
For detailed instructions, please refer to Basic operation guide for Microsoft OAuth end users in CubeBackup.
NOTE: Please complete the first backup cycle of your Microsoft 365 organization before notifying all users of the organization address of the CubeBackup server. Otherwise, there will be no backup data for the users to see.