Create Windows Logins using C/SIDE

zaloo78
Member Posts: 9
Hey,
I was wondering if anyone of you guys know if it is possible to create windows logins using code (C/SIDE). Instead of going in a manually add user using the Security -> Windows Logins form.
I was wondering if anyone of you guys know if it is possible to create windows logins using code (C/SIDE). Instead of going in a manually add user using the Security -> Windows Logins form.
0
Comments
-
Make a lookup on Windows Object table for the user, when you get it take the SID and create a variable for Windows Login table...
WindowsLogin.INIT; WindowsLogin.SID := WindowsObject.SID; WindowsLogin.INSERT;
-Lavin
"Profanity is the one language all programmers know best."0 -
Neat..
Alternatively I guess you could (manually) add an AD security user group, I you want to easily manage multiple Windows logins with the same credentials...Best regards / Venlig hilsen
Johannes Sebastian
MB7-840,MB7-8410 -
Really, you could do the same. The lookup will show both unless you filter for WindowsObject.Type as group. I would imagine this would be very slow, but these have SID's as well where the above would insert it also. Either way you would have to know the SID so I would assume there would be *some* user interaction so why not just go to the appropriate areas.
When I was at an end-user company (actually on my way out) I made a New User Checklist form for them that would create the SQL user, Windows Login, copy permissions or set manually copy user setups, create/copy menus etc by clicking buttons. They just had to lookup who they wanted to add. This just centralized adding users so no one had to
I guess I'm split on just using he forms and making it so any repetitive task done easier...-Lavin
"Profanity is the one language all programmers know best."0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions