TrueNAS SCALE Documentation Archive
This content follows the TrueNAS SCALE 22.12 (Bluefin) releases. Archival documentation is provided for reference only and not actively maintained.
Use the Product and Version selectors above to view content specific to different TrueNAS software or major versions.
Group
9 minute read.
Last Modified 2024-03-19 08:47 EDTThe TrueNAS CLI guide for SCALE is a work in progress! New namespace and command documentation is continually added and maintained, so check back here often to see what is new!
Welcome to the TrueNAS SCALE Command Line Interface (CLI) guide!
The TrueNAS CLI in TrueNAS SCALE functions like a text-based version of the web UI with many functional areas grouped into parent and child namespaces that mirror the counterparts in the SCALE UI.
The underlying structure of the CLI namespaces and commands closely follows that of the SCALE API. For more information on API commands, arguments, options, and definitions go to API Keys and click on API Docs in the SCALE UI.
The group namespace contains eight commands and is based on functions found in the SCALE API and web UI. It provides access to group account creation, configuration, and management.
The following group namespace commands allow you to manage groups.
You can enter commands from the main CLI prompt or from the system namespace prompt.
The create
command creates a new group.
create
has one required and six optional properties for group configuration. name
is required.
The optional properties are gid
, smb
, sudo_commands
, sudo_commands_nopasswd
, allow_duplicate_gid
, and users
.
Property arguments use the =
delimiter to separate the property and value. For example, gid=3000
.
See the table below for details.
The delete
command erases an existing group.
The get_group_obj
command returns dictionary containing information from struct grp including group name, identification number, and group members.
The TrueNAS CLI guide for SCALE is a work in progress! Full documentation for this command is still being developed. Check back for updated information.
The get_instance
command retrieves information about a group.
The get_next_gid
command displays the next available group identification (GID) number.
The has_password_enabled_user
command checks whether at least one local user with a password enabled is a member of one or more provided groups.
The TrueNAS CLI guide for SCALE is a work in progress! Full documentation for this command is still being developed. Check back for updated information.
The query
command retrieves information about a group or groups and can use various query-filters and query-options.
The update
command updates the attributes of an existing group. For available properties, see Create Configuration Properties.