how to fetch the details such as name,title, department name,group names, domain of users and groups of Active directory that are configured in table dbo.UserInfo using x++ coding in ax 2012 ??
You can use UserPrincipal class via .NET Interop.
What exactly do you want me to demonstrate? Where did you get stuck when you tried it by yourself before giving up? Do you need some introduction to .NET Interop, you don't know how to create the object or what?
Gopinath M said:dbo.UserInfo using x++ coding in ax 2012 ??
Why cannot you get the details from that table? Am i missing something?
I think, you should have been more specific in your original question.
You have to get the worker related to the user(user relations) and form there you need to get the department assigned to the worker. Have a look at HCMWorker.getPrimaryDepartment();
Aha, so it wasn't about "department name [...] and groups of Active directory" at all. :)