Security Filter on Location Code:
shillu
Member Posts: 72
Hi All,
(I am using NAV IN 4.0SP3 SQL Database.)
Is it possible to restrict a user to view sales/purchase data related to certain locations using security filters?
For ex: My Locations are A,B,C,D,E,F,G and I have three users : User1, User2 and User3.
User1 : can view, insert or modify sales/purchase data in locations A,B,D
User2 : can view, insert or modify sales/purchase data in locations C,D,E,G
User3 : can view, insert or modify sales/purchase data in locations A,E,F,G
Using Responsibility center I can restrict to only one location. But I need to restrict users to view/insert/modify for multiple locations.
So to achieve this, I have created separate Roles. For each Role -> Permissions, selected Location Table and applied a security filter on Code field according to my requirement as mentioned above. But this is also not working. The user is able to view sales/purchase data for all other locations.
Is this the only way to get this done? Or any other suggestions?
Thanks,
(I am using NAV IN 4.0SP3 SQL Database.)
Is it possible to restrict a user to view sales/purchase data related to certain locations using security filters?
For ex: My Locations are A,B,C,D,E,F,G and I have three users : User1, User2 and User3.
User1 : can view, insert or modify sales/purchase data in locations A,B,D
User2 : can view, insert or modify sales/purchase data in locations C,D,E,G
User3 : can view, insert or modify sales/purchase data in locations A,E,F,G
Using Responsibility center I can restrict to only one location. But I need to restrict users to view/insert/modify for multiple locations.
So to achieve this, I have created separate Roles. For each Role -> Permissions, selected Location Table and applied a security filter on Code field according to my requirement as mentioned above. But this is also not working. The user is able to view sales/purchase data for all other locations.
Is this the only way to get this done? Or any other suggestions?
Thanks,
0
Comments
-
this type of facility not present in up to nav 5.0, we are using Nav 5.0, don't know it is in Nav 2009.
we are using this functionality. what we have done is create new table for user wise location wise transaction rights and customise each transaction according to that.
if this functionality is very important for you than u can do the same.0 -
Yes, we need the same functionality.
But could you please explain me little better? How did u customize each transaction according to userwise location wise set up?
Thanks,
Shilpa0 -
You need to set up your security filters in your roles, not on the Location table itself but on the required field of the Sales Header table (e.g. Location Code), or other target table that you want to restrict access to. What you have done currently is restricted access to the Location table.
Then, the way this will work is that the UI will automatically strip out Sales Header records where the user does not have read permission based on your security filter.
And for modifications of any kind (either from AL or directly from the UI) a permission error will occur when the security filter is violated.
One point: typically you need to set filters up for multiple related tables to get the correct restrictions you need.
You might find this link useful:
http://msdn.microsoft.com/en-us/library/dd301065.aspxDean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Thanks a lot.
I am also trying for the same (putting restriction on all other target tables). i think that should work.
But its a real big job..For each user, i need to define multiple roles.
For ex : My role is : S&R-Q/O/I/R/C(Create sales orders etc.). If i need to give the same role to all 3 users, I need to define a new role with differnt security filters on location code.
Becoz,
As I mentioned in my first mail, User1 has access to Locations A,B,D and User2- C,D,E,G etc.
In this case, I have to apply a security filter on all target tables for user 1 in one role. Similary for user 2 adn user 3 using different roles.
am I proceeding correct or any other suggestions pls!!!
Thanks,0 -
Don't forget location code empty on sales header and lines. Otherwise the user will not be able to enter any new orders/lines.
But, your solution will probably not work because of code that loops through sales lines and does not know that there is a sec filter. You can work around this by adding direct read rights to that object and indirect read rights in a role.Frank Dickschat
FD Consulting0
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
- 322 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