Hi Team,
I want to check email address of the person in active directory using NTID .
Can anyone suggest how it can done.
Hi @som17,
Try using Active Directory Package
UiPath.ActiveDirectoryDomainServices.Activities
Please share Properties of User Status activity
can u suggest something?
All the things you are doing inside a Active Directory Scope right.
Can you please user another user and before use please verify your user account name
Hi @som17 ,
Can you tell me if your problem was resolved by testing with another user?
Thank you in advance for your response.
Best regards,
Nourchene
The active directory is to be used under active directory scope ![]()
It all mattes with the unique distinguished value under Active Directory scope⌠that will help a lot in these casesâŚ
Hope this clarifies ![]()
Thank you so much @Shubham_Varshney for your reply.
Have a nice day ![]()
Wish you the same ![]()
@Shubham_Varshney I can see that you managed to get the email id of an AD user. I have a question if you could help me. I am running UIPath on my work machine. Below is what my process looks like where I am just running a simple find DN for a user.
I have provided the AD server name and authorised username and password. When running it, no error comes up and the sequence finishes. Am I supposed to run it on a Domain control or may be I am missing something?
@Shubham_Varshney @manju.choudhari24 @som17 : Is it possible to get email id (parameter âmailâ) using CN = âFull Nameâ of employee.
Iâve tried using 'Get Object by Filter activity (passed different parameters âEmailAddressâ or âmailâ) but still getting {}.
Iâm not sure what else is in your workflow, but if the Get activity succeeds, I wouldnât expect it to do anything else for you⌠If you want to test whether it worked as expected you could put a write line and print the output var to check.
@Jeroen : Iâm not having sAMAccountName value as input. Thatâs the reason I canât use this activity directly.
I am having Full name value (CN) and tried with Get Objects by Filter activity to extract âmailâ or âsAMAccountNameâ but getting {}.
@lukas.macas : Any thoughts on this?
Hi @Sonalk,
my reply was to @manju.choudhari24, but maybe there is something you could try (disclaimer, I have no experience in Active Directory):
In your screenshot I see you try to get an object, by querying "mail" = in_ManagerName. To me that looks like youâre searching for a name in an e-mail field.
Looking at the activities, this is what I would expect to be needed:
âGet Objects By Filterâ will return a list of Distinguished Names of objects based on a search.

âGet Object Propertiesâ will return an objects properties if you input a Distuinguished Name.

If you search (Get Objects By Filter) for Full Name (or whatever that attribute is called) = in_ManagerName, you will get a list of Distinguished Names of objects matching your search. If you then loop through that list of strings and input them into the âGet Object Propertiesâ, you should get a dictionary of properties for each object you found. That should include the e-mail property youâre looking for.
Once youâve found it, you could choose to specify it in âSinglePropertyValueâ so you donât have to get all the properties you donât need.
Why you filter by mail when you have name as input? You need to filter by name or similar attribute.
Thanks @Jeroen @lukas.macas : Iâve got expected email id by using below activities.




