CrashPlan PROe Deployment Issue - Finding Email Address

jasontucker
New Contributor

Greetings folks,

I'm attempting to create a custom install for CrashPlan PROe and our usernames in crashplan are our email addresses. Our email addresses are firstname.lastname@example.com How do I go about getting the first name and the last name of the current user so I can structure up some variables to get the output I need.

1 REPLY 1

jasontucker
New Contributor

I ended up asking in the MacAdmin's slack and we found that this would work for this sort of thing

dscl "/Active Directory/FEFCFUL/All Domains" -read /Users/jasontucker EMailAddress | awk '{print $2}'