D365 Finance & Operations and Dynamics AX Forum

Expand all | Collapse all

Copy security role

  • 1.  Copy security role

    Posted 13 days ago
    I'm needing to make a new role from a duplicate of an existing security role, and remove one specific privilege from the new role. To do this, I selected the role and clicked "Duplicate", assigned a name for the new role, removed the privilege, then Published the object. Now the original role no longer has the privilege either. I also tried to use the "Copy" action but it doesn't seem to do anything.

    ------------------------------
    Jack Ogle
    DFW Heavy Duty
    Forth Worth TX
    ------------------------------
    Conference-AXUG_200x200


  • 2.  RE: Copy security role

    TOP CONTRIBUTOR
    Posted 13 days ago
    Edited by Alex Meyer 13 days ago
    Jack,

    How did you remove the privilege from the role?

    Was the privilege assigned to a duty and you removed it from there?
    Or was the privilege assigned directly to the role itself?

    If you removed the privilege from a duty then what you described would make sense, because even though you duplicated the role, the duties and privileges assigned to the role are not duplicated. So when you modified the duty it affected both the original role and the duplicated role. In this case you would have to duplicate the duty you are modifying as well, removing the privilege there, and then make sure the duplicated duty is assigned to the duplicated role. You could then add the privilege back to the original duty.

    If the privilege was assigned directly to the role then removing the privilege from the role should not affect both the original role and the duplicated role.

    ------------------------------
    Alex Meyer
    Director of Dynamics AX/365 for Finance & Operations Development
    Fastpath
    Des Moines, IA
    ------------------------------

    Conference-AXUG_200x200


  • 3.  RE: Copy security role

    Posted 12 days ago
    That explains it perfectly Alex, thanks for the insight!

    ------------------------------
    Jack Ogle
    DFW Heavy Duty
    Forth Worth TX
    ------------------------------

    Conference-AXUG_200x200


  • 4.  RE: Copy security role

    SILVER CONTRIBUTOR
    Posted 13 days ago
    Hi,

    Could you please provide some more details about your original role as it is a standard or custom one. My understanding from your explanation is that it might be a custom one, if so you can add the deleted privilege to the role again. When you duplicate the role, please check all the nodes(like duties, sub-roles and so on) as it might provide unintended access to other features/objects.

    ------------------------------
    Regards,
    Chaitanya Golla
    Lead Architect
    ------------------------------

    Conference-AXUG_200x200


If you've found this thread useful, dive deeper into User Group community content by role