Link to home
Start Free TrialLog in
Avatar of bergsprekken
bergsprekken

asked on

dsget search by samid

I have a username/samid and need to find the email address of this user.

I know only the account name/samid of the user and want to find the email of this user.
Can I do that with dsget or dsquery? I know how to search for a full name of a person but I cant seem to find any info on how to search by samid, is it possible?

I tried "dsget user -samid username", but that didnt work..
ASKER CERTIFIED SOLUTION
Avatar of rmcgregor
rmcgregor

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
this simple script will give u all the details about the user account...
Avatar of bergsprekken
bergsprekken

ASKER

Thanks for the command description and exmple rmcgregor it was exactly what i needed. And thanks for posting the script anuroopkoka2005.