get_object_field_names

Use the get_object_field_names command to return a Tcl list of the field names for each of the fields—the object attributes—of the currently selected Active Directory object. The get_object_field_names command does not query Active Directory for the object’s field names but looks at the selected object as it is stored in ADEdit memory.

Zone type

Not applicable

Syntax

get_object_field_names

Abbreviation

gofn

Options

This command takes no options.

Arguments

This command takes no arguments.

Return value

This command returns a Tcl list of field names.

Examples

select_object “cn=amy adams,cn=users,dc=ajax,dc=com”
get_object_field_names

This example returns the field names associated with the selected user Amy Adams:

_SID _dn _objectCategory _server accountExpires cn codePage countryCode distinguishedName
gidNumber instanceType lastLogonTimestamp loginShell msDS‑MembersForAzRoleBL msSFU30NisDomain
nTSecurityDescriptor name objectCategory objectClass objectGUID objectSid primaryGroupID
pwdLastSet sAMAccountName sAMAccountType uSNChanged uSNCreated uid uidNumber unixHomeDirectory
userAccountControl userPrincipalName whenChanged whenCreated

Related commands

Before you use this command, you must have a currently selected Active Directory object stored in memory. The following commands enable you to view and select the object to work with:

  • get_objects performs an LDAP search of Active Directory and returns a Tcl list of the distinguished names of objects that match the search criteria.
  • new_object creates a new Active Directory object and stores it in memory.
  • select_object retrieves an object and its attributes from Active Directory and stores it in memory.

After you have an Active Directory object stored in memory, you can use the following commands to work with that object’s attributes, delete the object, or save information for the object:

  • add_object_value adds a value to a multi-valued field attribute of the currently selected Active Directory object.
  • delete_object deletes the selected Active Directory object from Active Directory and from memory.
  • delete_sub_tree deletes an Active Directory object and all of its children from Active Directory.
  • get_object_field reads a field value from the currently selected Active Directory object.
  • remove_object_value removes a value from a multi-valued field attribute of the currently selected Active Directory object.
  • save_object saves the selected Active Directory object with its current settings to Active Directory.
  • set_object_field sets a field value in the currently selected Active Directory object.