11
Views
2
Comments
[Active Directory Library] "Unspecified error" encountered in using AD_GetUserDetails.
active-directory-lib
Service icon
Forge asset by Renato Pauleta

Hi Folks,

My user module's authentication method is set as Active Directory, and I am trying to get the user details (Like Name, Email & etc.) by using ADID, like many other developer do, I went and use the functions from Active Directory, and then I end up with the "Unspecified Error". 

Can anyone tell how to resolve this ?

Thanks. 

2021-02-12 15-14-06
Richard Jong

Adding more info to this question:

I realized that I need to setup the GlobalDirectoryEntry_Set, so I copy the domain that set in the /Users authentication method and paste to this domain path. 

But for the Username and Password, does it means that I need a service account that has READ access to the company Active Directory, so that I can use the previous "AD_GetUserDetails" ? 

Thanks

Best Regards,

Richard

2025-07-22 10-30-27
Mandar Deshpande

Hi @Richard Jong 

The error might be because AD_GetUserDetails does not use the logged-in Outsystems user credentials and it requires a service account that has Read access to Active directory.

So, before calling AD_GetUserDetails, 

GlobalConfigEntry_Set(DomainPath,Username,Password) needs to be called.

If DomainPath is set incorrectly or a normal user is used instead of a service account, this issue might occur.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.