Skip to main content
Question

EA to find mobile user account

  • Sep 17, 2024 3:35 PM UTC
  • 2 replies
  • 65 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
  • Sep 17, 2024 7:28 PM UTC

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
  • Sep 17, 2024 9:25 PM UTC
#!/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