USERATTR(1) User Commands USERATTR(1)

userattr — display extended user attributes

userattr [-v] attr_name [user]

The userattr command prints on standard output the first matching value found for attr_name in the user_attr(5), prof_attr(5) and policy.conf(5) databases (searched in that order) for user. If user is omitted, then the real UID of the invoking user is used.

The following options are supported:

Include the source of the reported value in the output. This will be ‘user_attr’ for values found in the user_attr(5) database or set directly by a keyword in policy.conf(5), otherwise the name of the profile, from prof_attr(5), through which the value was assigned.

The following operands are supported:

attr_name
The attribute to be searched for.
user
The user for which attributes should be retrieved.

0
Successful completion.
1
The requested attribute was not found, or an error occurred.

Example 1 Retrieving the attribute for user student1:

% userattr audit_flags student1
ex,pc:lo

Example 2 Retrieving the attribute for user student1 with the verbose option:

% userattr -v auths student1
Basic Solaris User : solaris.profmgr.read,solaris.mail.mailq

The command line interface of userattr is . The output of userattr is and may change at any time.

auths(1), profiles(1), policy.conf(5), prof_attr(5), user_attr(5), rbac(7)

August 8, 2026 OmniOS