dseditgroup
CautionEdit group membership
dseditgroup -o edit -a <user> -t user admin
Adds/removes group members and checks membership — grant or revoke admin rights from the CLI.
Examples
dseditgroup -o checkmember -m taro adminIs this user an admin?
Syntax
dseditgroup -o checkmember|edit [-a|-d user] -t user <group>
Before you run it
Admin grants are high impact.
Related commands
- dsclQuery Directory Services
- Add-LocalGroupMemberAdd to a local group
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store