Export users and groups to a file

You can export users and groups to a text file, which is an easy way to move accounts on another server.

Passwords aren’t included in the export file, but you can edit the file to include them.

You can export:

  1. Select Users or Groups in the Server app sidebar.

  2. Select the desired users or groups.

  3. Click the Action pop-up menu gear, then choose Export Users or Export Groups.

  4. Click the Export pop-up menu, then choose the source of the users or groups:

    • Your selected users or groups

    • The local directory

    • Any of the bound network servers

  5. Enter a file name and folder, then click Export.

You can use the dsexport command-line tool to create character-delimited text files of accounts on your network server. For information about how to use dsexport, enter man dsexport in Terminal.

See also
Import users and groups from a file
Create a user account
Create a group