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.
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
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.