Home Forums OS X Server and Client Discussion Open Directory Easiest way to add users?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #359788
    Anonymous
    Guest

    Hi.

    Is there an easy way to add users with an excel spreadsheet of about 250 users?

    Thanks.

    #359811
    mkalien
    Participant

    If you exported those users to a delimited text file you could have a shell/perl script read in the lines, create a dsimportexport/WGM import file, and then import that file with all 250 users.

    If you’re not familiar with dsimportexport, don’t worry it’s not that well documented, but it is found in the Command Line pdf that’s included as part of the OS X Server documentation.

    #359816
    Anonymous
    Guest

    thanks.

    Any ideas of the column headings I need, or in what order I need to put the names?

    #359822
    mkalien
    Participant

    If I get more time I’ll show an example, but really if you download the Command Line Administration pdf from here, it gives some description and examples. I know it’s not the best, but it’s a start.

    Basically, you create a header line that specifies the ascii characters for a couple different delimiters, then you can put the data in any order you like as long as your headerline field descriptions are in the same order as your data. I’m talking about the dsimportexport import file that you need to build. If you want to use headings in your excel spreadsheet, then simply ignore them in your script or use the dsimportexport field names for headings (i.e. dsAttrTypeStandard:RecordName, dsAttrTypeStandard:HomeDirectory, etc..)

    #359831
    Anonymous
    Guest

    Ok, downloading and trying out next week.

    Thanks for the help 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed