Disable user switching

Prevent the user from switching to another account while his session is active.

- Type: dconf
- Key: /org/gnome/desktop/lockdown/disable-user-switching
- Default: false

Note: default system value is used for "Not Configured" and enforced if "Disabled".

Supported on Ubuntu 20.04, 22.04, 22.10.

Supported on: Ubuntu

Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Ubuntu\dconf\org\gnome\desktop\lockdown\disable-user-switching
Value NamemetaValues
Value TypeREG_SZ
Enabled Value{"20.04":{"empty":"false","meta":"b"},"22.04":{"empty":"false","meta":"b"},"22.10":{"empty":"false","meta":"b"},"all":{"empty":"false","meta":"b"}}
Disabled Value{"20.04":{"meta":"b"},"22.04":{"meta":"b"},"22.10":{"meta":"b"},"all":{"meta":"b"}}

Disable user switching
Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Ubuntu\dconf\org\gnome\desktop\lockdown\disable-user-switching
Value Nameall
Value TypeREG_SZ
Default Valuefalse
True Valuetrue
False Valuefalse
Override value for 22.10:
Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Ubuntu\dconf\org\gnome\desktop\lockdown\disable-user-switching
Value NameOverride22.10
Value TypeREG_SZ
Default Valuefalse
True Valuetrue
False Valuefalse
Disable user switching
Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Ubuntu\dconf\org\gnome\desktop\lockdown\disable-user-switching
Value Name22.10
Value TypeREG_SZ
Default Valuefalse
True Valuetrue
False Valuefalse
Override value for 22.04:
Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Ubuntu\dconf\org\gnome\desktop\lockdown\disable-user-switching
Value NameOverride22.04
Value TypeREG_SZ
Default Valuefalse
True Valuetrue
False Valuefalse
Disable user switching
Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Ubuntu\dconf\org\gnome\desktop\lockdown\disable-user-switching
Value Name22.04
Value TypeREG_SZ
Default Valuefalse
True Valuetrue
False Valuefalse
Override value for 20.04:
Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Ubuntu\dconf\org\gnome\desktop\lockdown\disable-user-switching
Value NameOverride20.04
Value TypeREG_SZ
Default Valuefalse
True Valuetrue
False Valuefalse
Disable user switching
Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Ubuntu\dconf\org\gnome\desktop\lockdown\disable-user-switching
Value Name20.04
Value TypeREG_SZ
Default Valuefalse
True Valuetrue
False Valuefalse

ubuntu.admx

Administrative Templates (Computers)