Check which objects need Permission Property based on license
dral2011
Member Posts: 3
I am using Customer License and when I run one customized Codeunit I receive the message "You do not have permission to modify table 122...".
And this is the right message because the customer license has only indirect Modify permission in Table 122.
I know that I should add this table in Permission Property as it was missing there.
But I would like to know in general, is there any possibility to identify all objects for which I need to populate Permission Property based on license that I upload (without running the object)?
And this is the right message because the customer license has only indirect Modify permission in Table 122.
I know that I should add this table in Permission Property as it was missing there.
But I would like to know in general, is there any possibility to identify all objects for which I need to populate Permission Property based on license that I upload (without running the object)?
0
Best Answer
-
There are tools, I think Easy Security has one, which helps to find minimum required access permission by analyzing access to Object table from the SQL trace.
Never used such a tool myself, but I think may be helpful, especially if it can correlate the data from code coverage with Object table access data.
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-035
Answers
-
You can find what is included in your license by building a page or a report on a virtual tables License Permission or Permission Range.
But this will not tell you what you *should* add - this basically depends on the code inside objects, and can be derived from analyzing object's code.
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
Yes, I have checked with report both from License Permission and Permission Range and I know which tables are with indirect Modify permission but I was thinking of this other option and couldn't find myself until now a solution.
Anyhow, thank you very much for your answer.0 -
There are tools, I think Easy Security has one, which helps to find minimum required access permission by analyzing access to Object table from the SQL trace.
Never used such a tool myself, but I think may be helpful, especially if it can correlate the data from code coverage with Object table access data.
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-035 -
I will give a try to this tool.
Thank you very much0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 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
