Users stuck signed in to MAS with MAID? Fear no more!

jobscommasteve
New Contributor III

Hi all,

We've had a few users in our org come to the Help Desk that have Macs signed in to iCloud with a MAID – these users are also automatically signed in to the App Store by default with their MAID as well. Pretty sure this is expected behavior of macOS. 

The problem, however, is that when a user is signed in to the MAS with a MAID, there is no option to sign out. I don't know why this is, but I certainly understand how and why it can be frustrating.

That said, I've created a script that takes care of it. The TLDR is that it does the following, in order:

  1. Downloads and installs Homebrew.
  2. Installs the mas/mas-cli binary.
  3. Runs the "mas signout" command
  4. Script ends.

Apologies for not at all understanding how Github works, but here's a link to the script: https://github.com/teezyyoxo/choate-scripts/blob/main/MASbrewpls.sh

I welcome any feedback as I am only still learning :)

Last tested this on an 14" MacBook Pro (M3 Pro) about two weeks ago and it worked with no incident.

Hope it helps some of y'all!

2 REPLIES 2

jamf-42
Valued Contributor II

dead link? no public repos?

LOL. Knew I did something wrong.

Just created a Gist. Hopefully you're able to see it now?

https://gist.github.com/teezyyoxo/47dd299643bd7037e362c5fa167136a0