I have a device with MIUI 13, that removed (hid) the Android stock multi-user feature that I need.
I recalled the activity to show the multi-user feature in settings via shortcut maker (adding accounts works normally), but unfortunately, the lock screen UI doesn't show the switch user shortcuts. So, the only way to switch is to enter in multi-user menu and choose one, but with a PIN-protected device, it's not applicable.
Then I need a way to "programmatically" switch to a user with an intent/activity (sorry, I never developed on Android, some concept is not too clear at this time), exactly how to the Android stock lock screen UI does. Having a way to do that in this way, I can place a quick setting tile to achieve my target.
Someone can push me in the right way?