how to unlock "Show fast user switching menu as" in system preference

shermanpan
New Contributor III

59086b79b0f548c6b7bd037903b2bed0

6 REPLIES 6

sshort
Valued Contributor

If something is greyed out in preferences it's likely a configuration profile that's restricting that option. There's a .GlobalPreferences key for MultipleSessionsEnabled and yours might be set to false.

In Jamf the most common way this gets set is if you're using a Login Window payload and leave this box unchecked, which blocks that for your users. d6a9717322d74baf9442ad2ed3edc6bc

It's also possible that restriction was set with a script:

/usr/bin/defaults write .GlobalPreferences MultipleSessionsEnabled -bool NO

shermanpan
New Contributor III

i have set Enable Fast User Switching, But it's not working . the itme is also greyed out. @ sshort

chuinder
New Contributor III

@shermanpan not sure if you ever got a solution for this. I just ran into the same thing and found that our custom profile that set the "CSUIDisable32BitWarning" did this. Essentially, it sets the plist that also holds the setting for Fast User switching as a Managed Preference and if you don't explicitly set "MultipleSessionEnabled" to TRUE in that, it will default to FALSE. The plist file is /Library/Managed Preferences/.GlobalPreferences.plist

sshort
Valued Contributor

@chuinder Interesting... just curious, was the custom profile that sets CSUIDisable32BitWarning uploaded as a mobileconfig and signed (so it's read-only)? Or did you create the custom profile by uploading a plist?

chuinder
New Contributor III

had to check with my coworker who actually authored the setting and he did it as a .mobileconfig. It's actually still giving us some issues. Removing the profile "fixes" the problem. Setting the MultipleSessionEnabled to TRUE is still read by the system as it being FALSE..

AKuzenkov
New Contributor III

In case anyone else is having the same issue with Monterey go to this article - https://www.kevinmcox.com/2022/04/adventures-in-fast-user-switching-on-macos-monterey/

Below is the script I deployed through JAMF. The key is running the last 2 plist settings AS the user.

#!/bin/sh

# Get current logged in user
currentuser=`/bin/ls -la /dev/console | /usr/bin/cut -d " " -f 4`

# Global Setting. Enables for all users.
defaults write /Library/Preferences/.GlobalPreferences MultipleSessionEnabled -bool true

# User Specific Setting. Note - if running manually use SUDO
# UserSwitcher - Where you want the fast user switching icon to appear
# OPTIONS: 1 = Show in Control Center. (WE USE #2) 2 = Show in Menu Bar. 3 = Show in both. 8 = Hidden (FUS disabled)
su $currentuser -c "defaults -currentHost write com.apple.controlcenter UserSwitcher -int 2"

# User Specific Setting. Note - if running manually use SUDO
# userMenuExtraStyle - What you want it to display.
# OPTIONS: 0 = Full Name. (WE USE #1) 1 = Account Name (username). 2 = Icon (default)
su $currentuser -c "defaults write .GlobalPreferences userMenuExtraStyle -int 1"