- Extensible Data Security that is Security policy.Security policies enable developers and administrators to block access to subsets of data rows in tables.
A policy is roughly similar to a where clause in an SQL select
statement. A security permission increases the access a user has to
data, but a security policy decreases access to data.
Follow are the steps to create the security policy:
- In the AOT, expand the Security node.
- Right-click the Policies node and select New Security Policy.
- In the property sheet for the security policy, set the Name property to SmmBusRelUser,
- Set the Label property to Limit Prospects by User.
- Set the Primary Table property to HcmWorker.
- Set the Query property to HcmSalesUser.
- Set the ContextType property to RoleName.
- Set the RoleName property to TradeSalesRepresentative.
- Finally set the Enabled property to Yes.
- Expand the SmmBusRelUser security policy.
- Right-click the Constrained Tables node and select New > Add table by relation.
- In the property sheet for the new constrained table set following properties
- Set the Table property to smmBusRelTable.
- Set the TableRelation property to MainContactWorker.
- Save your changes to the policy.
Follow the instruction bellow to test the security policy.
- Log on to Microsoft Dynamics AX as User . To do this, right-click the short-cut, while holding the Shift key down, and select Run as Different User.
- Enter the user and enter the password.
- Open Sales and Marketing > Prospects > All prospects.
- Only prospects with User set as the sales rep will display.
No comments:
Post a Comment