Security Filters of NAV not working in Web Services

swapnil1985
Member Posts: 12
Hello All,
I am trying to set Security filters for Table Data of Job (table 167) as follows
In Permission Table:
Then i am trying to access the Job table data through below code through web services:
ddljob.DataSource = JobList_serv.ReadMultiple(null, null, 0);
ddljob.DataTextField = "Description";
ddljob.DataValueField = "No";
ddljob.DataBind();
But getting the error "You do not have permission to read Job Table".
This security filter is working correctly for Classic Client and RTC. for this windows user job table is showing data of only No. = 'A003_A'. But on Web through web service it is showing the above error.
Please Help me out..
Thanks in Advance
Swapnil Mehta
I am trying to set Security filters for Table Data of Job (table 167) as follows
In Permission Table:
Then i am trying to access the Job table data through below code through web services:
ddljob.DataSource = JobList_serv.ReadMultiple(null, null, 0);
ddljob.DataTextField = "Description";
ddljob.DataValueField = "No";
ddljob.DataBind();
But getting the error "You do not have permission to read Job Table".
This security filter is working correctly for Classic Client and RTC. for this windows user job table is showing data of only No. = 'A003_A'. But on Web through web service it is showing the above error.
Please Help me out..
Thanks in Advance
Swapnil Mehta
0
Comments
-
Hi,
Thanks for finding this issue. Unfortunately it seems to be a bug in the product. I managed to reproduce it both in the RTM and in the SP1 version. I logged now this in our internal bug tracking system, however I suggest to report it through the official channels as well to increase the chance we can create a hotfix for this.
It seems that the Read method on the service still works with Security Filter, so if you know the key of the records in the table you are interested in, then you can access the data you need. However I have no idea how to get the list of keys.Regards,
Gabor Pesti
“This posting is provided "AS IS" with no warranties, and confers no rights.”
Software Developer Engineer in Test
MSFT
Dynamics NAV0 -
If you want to make work security filters in NAV Pages then in OnOpenPage trigger of every page where you want to have effect of security filters write code: Record.SetPermissionOnFilters
Thanks & Regards,
Swapnil0 -
Gabor Pesti wrote:Hi,
Thanks for finding this issue. Unfortunately it seems to be a bug in the product. I managed to reproduce it both in the RTM and in the SP1 version. I logged now this in our internal bug tracking system, however I suggest to report it through the official channels as well to increase the chance we can create a hotfix for this.
It seems that the Read method on the service still works with Security Filter, so if you know the key of the records in the table you are interested in, then you can access the data you need. However I have no idea how to get the list of keys.
In forms also, same thing is there.
and it can be solved as Swapnil suggested above.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