限制安全角色访问特定字段

针对特定的安全角色限定访问字段可以参考下面的这篇文章。

原文来自: https://dynamicsaxtipoftheday.com/2014/04/15/restrict-field-access-by-security-role/

Restrict Field Access By Security Role


The roles within Dynamics AX are pre-configured to restrict users from accessing areas that they usually don’t need to use, but you don’t have to stop there. You can tweak the security even more by restricting access to the field level data that shows up on the forms through the security role maintenance feature, allowing you to give people read only access, or not even show the field in the case of sensitive information. As an added benefit, if you restrict access this way, then the users will not be able to access the data through the reports, or through the Excel add-in.

If your users are already paranoid that they don’t see all of the data, then redacting access this way may push them over the edge.

How To Do It…

Start off by finding the field that you want to restrict access to. In this case we want to stop particular users from maintaining the VendorsBank Account.

Then find the Role that you want to restrict access through – in this example we are cheating a little and finding theRole through the user account, an then clicking on theEdit Role button within theUser Roles tab.

When the Security Roles maintenance form is displayed, click on theOverride Permissions button within the menu bar.

This will open up the Override Permissions form. To override the permissions on a table, click on theTable/Fieldsnode.

This will open up the Override Permissions form. To override the permissions on a table, click on theTable/Fieldsnode.

This will allow you to browse all of the tables within Dynamics AX. Select the table that you want to restrict access to (in this case theVendTable) and expand it so that you can see all of the fields.

To override the permissions by field, select the parent table and then uncheck theDo Not Override checkbox.

This will allow you to override the general access to the table if you like. In this example though we will leave it with theFull control access level because we want to override the access to an individual field.

Now select the field that you want to restrict access to, and uncheck the Do Not Override checkbox.

Now you can change the access rights to that field by selecting the option from theOverride Access Level dropdown box. You can set it toNo Access,View, orEdit.

Now when the user returns to the form, they are not able to change the field if they belong to that security role.

Access Denied.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值