XDS Policy allows to update record with restricted value

Pandasama
Member Posts: 3
in Dynamics AX
Hi
I have a XDS Policy (Security/Policies) on table TheTable. It's allowed field TheField values Value1, Value2 and denies field TheField values RestrictedValue1, RestrictedValue2.
"Operation" property of Policy set to "ALL OPERATIONS"
Policy works correct, showing only record from TheTable with allowed values of TheField.
But if i try to edit record, and change TheField from allowed Value1 to restricted RestrictedValue1 - Policy allows me to save record (and then if if reload table/form - i cant see edited record, of course).
If i use Record Level Security in same case - it works correct, and doesnt allow me to save edited record with restricted value of TheField.
BTW, policy work right if i create new record with restricted value of TheField.
Is this Policy proper (even though strange) behavior or i just do something wrong?
I have a XDS Policy (Security/Policies) on table TheTable. It's allowed field TheField values Value1, Value2 and denies field TheField values RestrictedValue1, RestrictedValue2.
"Operation" property of Policy set to "ALL OPERATIONS"
Policy works correct, showing only record from TheTable with allowed values of TheField.
But if i try to edit record, and change TheField from allowed Value1 to restricted RestrictedValue1 - Policy allows me to save record (and then if if reload table/form - i cant see edited record, of course).
If i use Record Level Security in same case - it works correct, and doesnt allow me to save edited record with restricted value of TheField.
BTW, policy work right if i create new record with restricted value of TheField.
Is this Policy proper (even though strange) behavior or i just do something wrong?
0
Comments
-
Hi
Your Policy is proper. With your setup, we can understand how the Policy works as following:
- The Policy just allows user to select/insert/update/delete TheTable records with allowed values of TheField => you are able to edit record and change TheField value from Value1 to RestrictedValue1=> it's correct.
- You can do a simple test by changing the "Operation" property to "Update" and test 2 below scenarios to understand easily the behavior of policy:
1. Try to edit record, and change TheField from Value1 to RestrictedValue1
2. Try to edit record, and change TheField from RestrictedValue1to Value1
Hope it is helpful.
Best regards0
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