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

推荐订阅源

博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog
博客园 - Franky
IT之家
IT之家
V
Visual Studio Blog
博客园 - 【当耐特】
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
宝玉的分享
宝玉的分享
博客园 - 叶小钗
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
罗磊的独立博客
小众软件
小众软件
Jina AI
Jina AI

博客园 - 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.