get_local_user_profile_field

Use the get_local_user_profile_field command to display the value of the specified field for the currently selected local UNIX or Linux user that has a profile defined in the current zone. Before executing this command, you must select a local user by executing the select_local_user_profile command.

Zone type

Hierarchical only.

Syntax

get_local_user_profile_field field_name

Abbreviation

glupf

Options

This command takes no options.

Arguments

This command takes the following argument:

Argument Type Description

field_name

string

Required. Specifies the local user profile field to retrieve. The possible values include:

  • uid: The user’s numeric identifier.
  • gid: The GID of the user’s primary group.
  • shell: The local user’s default shell on the local computer. Possible values are: /bin/bash, /bin/csh, /bin/ksh, /bin/sh, /bin/tcsh, %{shell}.
  • home: The local user’s default home directory on the local computer.
  • gecos: General information about the local user account.
  • uname: The UNIX name of the user.
  • dn: The distinguished name of the user.
  • createTime: The creation time of the user profile.
  • modifyTime: The most recent modification time of the user profile.
  • profileflag: The value of the user’s profile flag as set in the user object in the zone. For the user to be managed by the agent, the profile flag must be set to 1 , 2, or 3.

You can also specify AIX extended attributes as the field to get an extended attribute value for a user. Extended attribute fields start with the aix. prefix. For example, the admin extended attribute can be retrieved by specifying aix.admin as the field.

Return value

This command returns the value of the specified field.

Examples

The following example returns the UID of the currently selected local user in the zone.

get_local_user_profile_field uid

The following example returns the value of the profile flag for the currently selected local user. In this example, the profile flag is 2, meaning that the user profile in /etc/passwd will be updated with the latest settings from the local account zone object at the next local account refresh interval, but the password entry in /etc/passwd will be set to !! so that the user cannot log into the local computer.

get_local_user_profile_field profileflag
2

For more information about the meaning of the profile flag value, see set_local_user_profile_field.

You can also specify AIX extended attributes as the field to get an extended attribute value for a user. Extended attribute fields start with the aix. prefix. For example, the admin extended attribute can be retrieved by specifying aix.admin as the field.

get_local_user_profile_field aix.admin
false

Related commands

The following related ADEdit commands let you view and administer local UNIX and Linux users and groups that have profiles defined in the current zone:

  • delete_local_group_profile deletes a local UNIX or Linux group that has a profile defined in the current zone.
  • delete_local_user_profile deletes a local UNIX or Linux user that has a profile defined in the current zone.
  • get_local_group_profile_field displays the value of a profile field for the currently selected local UNIX or Linux group that has a profile defined in the current zone.
  • get_local_groups_profile displays a TCL list of profiles for local groups that are defined in the current zone.
  • get_local_users_profile displays a TCL list of profiles for local users that are defined in the current zone.
  • list_local_groups_profile displays a list of local UNIX and Linux groups that have a profile defined in the current zone.
  • list_local_users_profile displays a list of local UNIX and Linux users that have a profile defined in the current zone.
  • new_local_group_profile creates an object for a local UNIX or Linux group in the currently selected zone.
  • new_local_user_profile creates an object for a local UNIX or Linux user in the currently selected zone.
  • save_local_group_profile saves the currently selected local UNIX or Linux group object after you create the group object or edit profile field values in the group object.
  • save_local_user_profile saves the currently selected local UNIX or Linux user object after you create the user object or edit profile field values in the user object.
  • select_local_group_profile selects a local UNIX or Linux group object for viewing or editing.
  • select_local_user_profile selects a local UNIX or Linux user object for viewing or editing.
  • set_local_group_profile_field sets the value of a field for the currently selected local UNIX or Linux group that has a profile defined in the current zone.
  • set_local_user_profile_field sets the value of a field for the currently selected local UNIX or Linux user that has a profile defined in the current zone.