Jump to content

Workflow: Swap User - Quickly switch between mac accounts

Recommended Posts

Alfred Workflow: Swap User

Swaps automatically to the next user


  • Alfred
  • Alfred Powerpack
  • Assistive access enabled in System Preferences > Universal Access


  1. Download the .alfredworkflow file from here
  2. Double click to install


Swap User Usage

How does it work

From the users listed when running the following command:

dscacheutil -q user | grep -A3 -B2 -e 5'[0-9][0-2']

the script excludes the current user and takes the first user from the ones remaining.


Edited by rodrigobdz
Correct shell command
Link to comment
  • 1 year later...
9 hours ago, Rutger Heringa said:

Dear Rodrigo,

I am new to this forum. Where can I download your workflow to swap users?

Thank you!


Hi Rutger,

Thanks for your interest. You can download the workflow from here. It's the Github's releases page from the workflow's repo.

Please feel free to contact me if you have any further questions.

Best regards,


Link to comment
  • 3 months later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...