Skip to main content
Question

EA to find mobile user account

  • September 17, 2024
  • 2 replies
  • 12 views

Forum|alt.badge.img+3

I'm trying to find a functional EA under Sonoma that I can use to create a search for users who still have mobile accounts.   Does anyone have one that works for builds later than 14.3?   I'm unsure what may have changed against other EAs I've found here.

2 replies

AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • September 17, 2024

It should not be too hard, you just use dscl to search users UniqueID's and the obnoxiously high ID's are mobile accounts.


A_Collins
Forum|alt.badge.img+11
  • Contributor
  • September 17, 2024
#!/bin/sh NETACCLIST=$(dscl . list /Users OriginalNodeName | awk '{print $1}' 2>/dev/null) ​ if [ "$NETACCLIST" == "" ]; then echo "<result>No Network Accounts</result>" else echo "<result>$NETACCLIST</result>" fi exit 0