最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

财务报表的可扩展数据安全策略 / Extensible data security policy for financial reports

网络文摘 William 1164浏览 0评论

Purpose:

The purpose of this blog post is to demonstrate how we can achieve data filtration through Extensible Data Security (XDS) policies which cannot be achieved using Role-Based Security (RBS).

Product:

Dynamics 365 for Finance and Operations

Disclaimer:

This blog post uses Microsoft’s demo company data to demonstrate the concepts and processes and hence therefore doesn’t violate any data confidentiality policies.

Overview:

In D365FO, Financial reports are stored in FinancialReports table in AxDB unlike in AX 2012 where they used to get stored in the reporting database and could be filtered per user through report library permissions feature in Management Reporter. However, we still can filter financial reports per user using the XDS policies.

Solution:

Consider we need to configure security for a user such that he/she could only see reports under Housing Reports folder.

1. Create a query

Create a query. Add FinancialReports table as a data source. Add range for field Folder. Set value to Housing Reports.

2. Create a security policy

Create a security policy. Set the properties as highlighted. Please note that we are using RoleProperty as ContextType. Further we are using the primary table, FinancialReports as the constrained table as well. That’s why, we are not adding any other constrained table to the policy. Lastly, set the query to the one created above.

3. Synchronize the database to let the policy take effect.

4. Create a new security role

Create a new security role or use an existing one to update the Security policy context string value to the context string value we used on the security policy. This binds the security policy with the security role and eventually to the user.
Make sure the role has relevant duties to maintain or view financial reports.

5. Test

Login with the user which is assigned this security role and bingo see the magic! Only reports under Housing Reports folder are accessible to this user.
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址