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_objectsperforms an LDAP search of Active Directory and returns a Tcl list of the distinguished names of objects that match the search criteria.new_objectcreates a new Active Directory object and stores it in memory.select_objectretrieves 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_valueadds a value to a multi-valued field attribute of the currently selected Active Directory object.delete_objectdeletes the selected Active Directory object from Active Directory and from memory.delete_sub_treedeletes an Active Directory object and all of its children from Active Directory.get_object_fieldreads a field value from the currently selected Active Directory object.remove_object_valueremoves a value from a multi-valued field attribute of the currently selected Active Directory object.save_objectsaves the selected Active Directory object with its current settings to Active Directory.set_object_fieldsets a field value in the currently selected Active Directory object.