惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 聂微东
博客园 - 【当耐特】
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
美团技术团队
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
IT之家
IT之家
T
Tailwind CSS Blog
月光博客
月光博客
Vercel News
Vercel News
V
V2EX
Engineering at Meta
Engineering at Meta
B
Blog
Stack Overflow Blog
Stack Overflow Blog
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog
人人都是产品经理
人人都是产品经理
腾讯CDC
I
InfoQ

博客园 - Jacky Xu

Office Excel Add-ins installation for AX 2012 and Dynamics AX 2012 clients reinstalltion Develop a Dynamics AX2012 Report by Visual Studio 2010 Codes Permission Management in AX 2012 Publish AX reports in AX2012 + SQL2008 How to use a shared configuration file& Security configuration example in Dynamics AX 2012 Security management in Dynamics AX 2012 Dynamics AX2012 Installation& AOS (Cluster) configuration on Windows 7 Office 2007 Re-installed issue Delete printer sessions on Terminal server for users Launch AX2012 Virtual Machine Change Tracking -- SQL Server 2008 new feature FILESTREAM -- SQL Server2008 New Feature Don't use SQL keyword as your feild name of a table Reports development in Axapta 3 记忆一些SQL语句 终端服务器许可问题 Can't access maintenance plan because Agent XPs component is turned off as part of the security configuration on sql2005 SQL Error log/Event ID(17890): A significant part of sql server process memory has been paged out. This may result.... command命令大全(转自http://blog.dhedu.gov.cn/u/72/archives/2009/14290.html)
Create a security policy in Dynamics AX2012
Jacky Xu · 2011-11-02 · via 博客园 - Jacky Xu

In Dynamics AX2012, it uses security policy(AOT->Security->Policies) to replace Record-Level security. Record-Level security will not be deprecated in the AX2012 and future version will be not supported.

So let's create a simple policy step by step.

1, Define a Query named Test1 as a record inquiry.

This inquiry will get data from sales table and sales line.

Step 1, Drag Saleline and SalesTable as the first and second data source on the Query.

Step 2, Configure Fields property as Dynamic on both SalesLine and SalesTable data source for all fields selected. 

Step 3, The property of SalesTable, fetch mode is 1:1 and relations is Yes

Step 4, The range of SalesTable node, Please select AccountNum as the field and value is a certain value.

2, Create the policy named Test2.

Step 1, Properity, Lable: Test, Primary table: SalesLine,  ConstrainedTable: Yes, Enabled: Yes, ContextType: RoleName, The select your role name in RoleName.

Step 2, Drag SalesTable on the node of constrained tables.

If the user who has this role, and he can access SalesTable Form, he'll only can see the reocords as query condition.