Restrict Number of Users per Company
LewisJames
Member Posts: 7
I have a client that wants to restrict the number of user sessions per company. He wants to allow 10 user sessions open in one company, 12 in another etc. Has anyone done this?
0
Comments
-
Create a table with pk company name, User ID.
In GL Setup have max Number of users field.
OnCompanyOpen trigger in CU 1 insert record into the table and also check how many records are in the table and if goes over max number of Users and error out.
OnCOmpanyClose you can delete the record for that user.
Some client will crash (happens rarely) but in order to compensate for that.
OnCOmpanyOpen check and make sure all the users in the new tables are actually logged in (session table).
30 min mod.0 -
Note: User with "Super" permissions (for example YOU) should be ever have the right to connect ;-)Do you make it right, it works too!0
-
oh and the table should be company independant or you could just have User ID as a field and don't need company because it will be separate table for each company.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
