I have googled this issue extensively and haven't found any help specific to D365. Any links would be appreciated.
My boss tasked me with rewriting the AX2012 white paper on Security Policies for D365. https://www.microsoft.com/en-us/download/details.aspx?id=3110
Does anyone have experience in applying a policy to multiple existing roles?
In AX2012 this was easy (apparently - I don't have 2012 experience) ->> accomplished by simply setting the ContextString on each role to the ContextString of the policy. For roles in your own model the process would be identical, but for existing roles this is procedure is not possible. An extension of the role does not allow you to change the ContextString. I have a few solutions, which I haven't tested due to time constraints:
- Create x duplicates of the policy for each of the x roles to be restricted. And then set the RoleName property on each policy-duplicate to the applicable role.
- As you can add duties to a role extension: Create a duty and set its ContextString to the policy ContextString (don't know if this is the same as setting a role's ContextString) and the add the duty to the role.
- Duplicate the role. Mark the original as obsolete. And then set ContextString. Terrible solution?
- Any other ideas?
Thanks for reading
*This post is locked for comments
I have the same question (0)