Enable Multi-User Mode for MDK Application
Advanced
35 min.
Set up the Mobile Development Kit client to enable the multi-user mode (one device, multiple users with secure access).
You will learn
- How to define an event on user switching
- How to configure multi-user settings in mobile service admin UI
- How to create an offline enabled MDK application that supports multiple users on the same device
Prerequisites
- Tutorial: Set Up for the Mobile Development Kit (MDK)
- Install SAP Mobile Services Client on your Android device or iOS
Android
iOS - Download the latest version of Mobile Development Kit SDK if you want to enable multi-user mode in MDK custom client either from the SAP community trial download or SAP Software Center if you are a SAP Mobile Services customer. This is required you to build a branded client.
You may clone an existing metadata project from the MDK Tutorial GitHub repository and start directly with step 3 in this tutorial.
Multiple user mode is designed for enterprise scenarios where, for example, an employee uses a shared device during their shift. They may go offline while working in the field and return the device at the end of their shift. The next day, the employee might use a different device, while the device used previously could be assigned to another user. This is why it is called multiple user mode. In offline scenarios, multiple user mode ensures that the initial user’s data, stored offline, is synchronized with the server before the second user logs in. This process preserves the previous user’s changes to the data.

