user.get_user_obj¶
Returns dictionary containing information from struct passwd for the user specified by either the username or uid. Bypasses user cache.
Note
Results will not include nested groups for Active Directory users.
No Additional Items
Tuple Validation
Parameter 1: get_user_obj
get_user_obj
Type: objectUserGetUserObjArgs parameters.
No Additional PropertiesUsername
Default: nullUid
Default: nullGet Groups
Type: boolean Default: falseretrieve group list for the specified user.
Sid Info
Type: boolean Default: falseretrieve SID and domain information for the user.
UserGetUserObjResult
Type: objectUserGetUserObjResult return fields.
No Additional PropertiesPw Name
Type: stringname of the user
Pw Gecos
Type: stringfull username or comment field
Pw Dir
Type: stringuser home directory
Pw Shell
Type: stringuser command line interpreter
Pw Uid
Type: integernumerical user id of the user
Pw Gid
Type: integernumerical group id for the user's primary group
Grouplist
optional list of group ids for groups of which this account is a member. If get_groups is not specified, this value will be null.
No Additional Items
Each item of this array must be:
Sid
optional SID value for the account that is present if sid_info is specified in payload.
Source
Type: enum (of string)the source for the user account.
Must be one of:
- "LOCAL"
- "ACTIVEDIRECTORY"
- "LDAP"
Local
Type: booleanboolean value indicating whether the account is local to TrueNAS or provided by a directory service.
Required roles: ACCOUNT_READ