Command: group
Manage user groups on macOS.
Usage
Usage: m group [OPTIONS] [ARGUMENTS]
Description: Manage groups on macOS.
Options:
--help Show this help message
--list List all Groups
--info GROUP Show information about a specific groups
--adduser USER GROUP Add an user to a specific groups
--removeuser USER GROUP Remove an user from a specific Groups
--ismember USER GROUP Check if an user is a member of a specific group
Options
--list
Lists all local user groups and their Group IDs (GID).
Example:
m group --list
--info GROUP
Displays detailed information about a specific group, including its members.
Example:
m group --info admin
--adduser USER GROUP
Adds an existing user to a group. Requires sudo
privileges.
Example:
sudo m group --adduser johndoe admin
--removeuser USER GROUP
Removes a user from a group. Requires sudo
privileges.
Example:
sudo m group --removeuser janedoe admin
--ismember USER GROUP
Checks if a user is a member of a specific group and prints a confirmation message.
Example:
m group --ismember johndoe staff
# Output: yes johndoe is a member of staff