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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store