Access Active Directory Users by Code
mahesh
Member Posts: 115
Dear NAV experts,
I want all Active Directory users in one form run time basis. I already read active directory related posts.
User SID or SID - Account ID virtual table also doesn't have required data. Windows Login table also contains list of only users which are added in NAV.
I want screen similar to "Windows Users & Groups" which is accessible from Tools->Security->Windows Login and Lookup in ID column.
Any ideas?
Mahesh Jain
I want all Active Directory users in one form run time basis. I already read active directory related posts.
User SID or SID - Account ID virtual table also doesn't have required data. Windows Login table also contains list of only users which are added in NAV.
I want screen similar to "Windows Users & Groups" which is accessible from Tools->Security->Windows Login and Lookup in ID column.
Any ideas?
Mahesh Jain
0
Comments
-
Maybe you need Windows Object? Record 20000000500
-
If your database is on SQL, you could create a linked server ADSI (Active Directory Service Interface) on SQL Server. Then you can query Active Directory through a SELECT statement. In NAV, you can use ADO to execute SQL statements from C/SIDE.
I don't have any ready-made code available. Search the web for "adsi linked server sql". Search mibuso.com forum for "ado sql".No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Thanks Bernad & Luc Van Dyck for perfect reply.
I tried Barnad's solution by using "Windows Object" virtual table. This is what i needed..! I could access all Active Directory users in one form & use for futher processing.
Sad news is that It is not working in RTC.
I get error - "Internal error 12 in module 40. Contact your system administrator or partner."
I also wrote a code to transfer these records in another physical table of NAV & tried to display but System gives error when accessing "Windows Object" table itself. Any idea.. :idea:0 -
Sorry, only know about Nav5.
But maybe it's something to do with the PC where NAV is running? (whether it's client or not)
See http://msdn.microsoft.com/en-us/library/dd301309.aspx0 -
Hello,
Thanks for putting this post.
I am also facing the same issue while accessing the USERNAME calculated from Classic and using it into RTC.
Classic works fine. But, RTC giving the same error that you have mentioned.
Could you please, suggest me what can be the solution to get it worked into RTC Report?
Thanks.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
