Importing and Exporting Account Information

Appendix

Use Workgroup Manager to import and export accounts, or use the dsimport command-line tool to import accounts.

You can quickly import or export user, group, computer, and computer group accounts using Workgroup Manager. You can also use the dsimport command-line tool to import user and group accounts.

Understanding What You Can Import and Export

You can import all record types that are tracked in Workgroup Manager. Common record types include users, groups, computers, and computer groups. Starting with Mac OS X Server v10.4, you can even import partial attributes of individual records, and combine attributes from different records.

When importing from custom files, the only attribute a record must have is a record name.

For a list of attributes, open Terminal and enter man DirectoryServiceAttributes. Alternately, if you have Xcode installed, you can view a list of attributes with improved formatting and more detailed descriptions by opening: /System/Library/Frameworks/DirectoryService.framework/Headers/DirServicesConst.h

You can’t use an import file to change the following predefined users: daemon, root, nobody, unknown, or www. In addition, you can’t use an import file to change the following predefined groups: admin, bin, daemon, dialer, mail, network, nobody, nogroup, operator, staff, sys, tty unknown, utmp, uucp, wheel, or www. However, you can add users to the wheel and admin groups.

You can use the dsimport tool to import records from a text-delimited file.

For descriptions of common record types and attributes, see Open Directory Administration. For a more complete list of attributes, enter man DirectoryServiceAttributes, or view the DirServicesConst.h file.

251

Page 251
Image 251
Apple 10.5 Leapard manual Importing and Exporting Account Information, Understanding What You Can Import and Export