privilege.create ================ Creates a privilege. `name` is a name for privilege (must be unique). `local_groups` is a list of local user account group GIDs that gain this privilege. `ds_groups` is list of Directory Service group GIDs that will gain this privilege. `roles` is a list of roles to be assigned to the privilege `web_shell` controls whether users with this privilege are allowed to log in to the Web UI. .. raw:: html
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Specifies the subgid mapping for this group. If DIRECT then the GID will be
directly mapped to all containers. Alternatively, the target GID may be
explicitly specified. If None, then the GID will not be mapped.
NOTE: this field will be ignored for groups that have been assigned
TrueNAS roles.
"DIRECT"
Value must be greater or equal to 1
and lesser or equal to 4294967294
Must be at least 1
characters long
A list of user ids (id
attribute from user.query
).
Must be at least 1
characters long
Must be at least 1
characters long
Must be at least 1
characters long
Specifies the subgid mapping for this group. If DIRECT then the GID will be
directly mapped to all containers. Alternatively, the target GID may be
explicitly specified. If None, then the GID will not be mapped.
NOTE: this field will be ignored for groups that have been assigned
TrueNAS roles.
"DIRECT"
Value must be greater or equal to 1
and lesser or equal to 4294967294
Must be at least 1
characters long
A list of user ids (id
attribute from user.query
).