Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Security Role - Copy v...
Finance forum
Answered

Security Role - Copy vs Duplicate

Posted on by

I need copy a security role and modify it for my own purposes.   What's the difference between 'Copy' and 'Duplicate'?

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,835 Super User on at
    RE: Security Role - Copy vs Duplicate

    Hi Peter,

    Please create a new question on this forum as your question is different from the original question. Please, then include also some more information about what filtering you are expecting. My initial feeling is that there are eXtensible Data Security (XDS) policies in use which might be limited to one or more security roles.

  • Pvansickler Profile Picture
    Pvansickler 50 on at
    RE: Security Role - Copy vs Duplicate

    Andre,

    I did the duplicate of the OOB Retail Sales Manager and renamed it BJ Sales Manager.  Nothing else and when I applied it to a user that replaced the Retail Sales Manager, the store/warehouse filtering didn't work as with the Retail Sales Manager.  I thought the duplicate is an identical role as the original.  If so, why is the duplicated role acting different?

    Thank you,

    Peter

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: Security Role - Copy vs Duplicate

    Unset means the same than having no privilege. So if no other privilege in your role gives access to Sales orders, then indeed changing the only one to Unset would have such impact. 

  • brianmaric Profile Picture
    brianmaric on at
    RE: Security Role - Copy vs Duplicate

    That's interesting.  I created a duplicate privilege and simply moved the status from 'Grant' to "Unset'.  That removed the ability to delete Sales

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: Security Role - Copy vs Duplicate

    Deny overrides any other privilege that the user might have regarding the securable object.

    So if the user has "delete" and "deny" access to Sales orders, they can't access sales orders.

    But if they have "delete" and "unset", they can access and delete sales orders.

  • brianmaric Profile Picture
    brianmaric on at
    RE: Security Role - Copy vs Duplicate

    What's the difference between 'Unset' and 'Deny'...seems to achieve the same thing

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,835 Super User on at
    RE: Security Role - Copy vs Duplicate

    Hi Brian,

    Your idea to duplicate the role and then create copies of duties and/or privileges which can be modified is the best way to go forward. You not only have to add these to the duplicated role, but you also have to remove the original duties/privileges.

    Besides a copy of the duties/privileges, you can also consider 'Deny' options and add this to the role, however this might be confusing when someone will try to understand the role and reads "Maintain ..." as duty and forgets about checking deny privileges/duties.

  • brianmaric Profile Picture
    brianmaric on at
    RE: Security Role - Copy vs Duplicate

    Or Perhaps create a copy of Sales order Maintain and modify it to exclude deletions and then add that to my duplicated role.

  • brianmaric Profile Picture
    brianmaric on at
    RE: Security Role - Copy vs Duplicate

    I need to create a copy of Sales Clerk and remove the ability to delete a sales order and line.  What's the best way to do this?

    I'm thinking of Duplicating Sales Clerk and creating a new privileges that allows create, update but not delete.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,835 Super User on at
    RE: Security Role - Copy vs Duplicate

    Hi Brianmaric,

    With duplicate, you create directly an exact copy of the object including all linked nodes. E.g. when you duplicate a role, it will copy the role including  the linked duties and privileges on the role.

    With the copy function, you can e.g. copy a privilege from a duty and paste the same privilege on another duty. Or on a higher level copy and paste a duty.  

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,835 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,526 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans