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
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 {}.
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.
Glad to hear that