Re: Scripting Apple Directory
Re: Scripting Apple Directory
- Subject: Re: Scripting Apple Directory
- From: Richard Davis <email@hidden>
- Date: Wed, 21 Oct 2015 08:18:03 -0400
You probably want to take a look at the man page for dscl at https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/dscl.1.html
dscl . -read /Users/<username>
Would give you all information in the username record. You can also request specific keys.
Hope this helps.
Rick Davis
Message: 1Date: Tue, 20 Oct 2015 17:07:45 -0700From: Jon Rosen <email@hidden>To: Applescript Users List <email@hidden>Subject: Scripting Apple DirectoryMessage-ID: <email@hidden" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> email@hidden>Content-Type: text/plain; charset=utf-8Is there anyone on this list who knows something about scripting Apple Directory? I haven’t been able to find any examples of how to search for pieces of user account information.— Jon
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden