Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

Remove case resolution permissions for security role

Posted on by 52

I'm trying to remove the ability for users to resolve cases. We only want management to have these permissions.

It used to be that no one could resolve cases, and once I gave permissions for queues, we were able to do so.

Now when I remove queue permissions, users can still resolve cases. I have also tried changing case permissions, removed subject and SLA permissions but still to no avail.

Any ideas?

Categories:
  • PippaH Profile Picture
    PippaH 52 on at
    RE: Remove case resolution permissions for security role

    Hi Jarrod, thanks for this - sounds like a great solution I'll give it a go.

  • PippaH Profile Picture
    PippaH 52 on at
    RE: Remove case resolution permissions for security role

    Thanks Leo - maybe a bit complicated for my level of expertise however I will try!

  • Verified answer
    Jarrod Lane Profile Picture
    Jarrod Lane 35 on at
    RE: Remove case resolution permissions for security role

    Hi PippaH

    If you want to keep the solution OOB you can look at using a Synchronous/real-time workflow.

    Have the workflow trigger after status change and set your 1st check condition for any status = Canceled or resolved.

    The 2nd check depends on the security hierarchy.

    If your managers live in a higher business unit, then set the check for the modified by users BU to not equal the Manager BU.

    However, if they are all in the same BU, you may have to look at creating a hidden boolean field on the users and set all the managers option to yes. Then use this field as your second check that if it equals no on the modified by user.

    After, your WF will need to have a stop workflow step below the check condition with a status of canceled. Then within the properties of the stop, you can add a status message explaining why they can't resolve the case.

    Finally, you add a conditional branch with a stop workflow step as succeeded.

    What this workflow will do is if the check condition is not met, It will allow the case to be resolved, however, if the check condition is met then it will prevent the status change and provide an error message essentially preventing case resolution based on the second check condition. Here is a screenshot of a similar requirement I had a while back.

    pastedimage1568629973029v1.png

    pastedimage1568630011248v2.png

    I hope the helps!

    Please mark as an answer if this resolved your issue.

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Remove case resolution permissions for security role

    Hi partner,

    You could also try to use Ribbonwork bench to hide this button based on your security roles.

    There are two thoughts.

    1. Get the current user security roles first on the form, and then create a display rule of "Resolve" button in ribbon work bench.

    Here is the sample code about how to get current roles.

    function GeteRole (executionContext) {

       var roleNameList=[];

       var formContext = executionContext.getFormContext();

       var currentUserRoleIds = Xrm.Utility.getGlobalContext().userSettings.securityRoles;

       for (i=0; i<currentUserRoleIds.length; i++) {

         var currentRoleUniqueId = currentUserRoleIds[i];

         Xrm.WebApi.retrieveRecord("roles",currentRoleUniqueId,"?$select=name").then(

           function success(result) {

           var roleName = result.name;

           roleNameList.push(roleName);

     },

           function error (error) {

             Xrm.Navigation.openAlertDialog({ text: error.message });

           }

     );}

           return roleNameList;

    }

    Here are some videos about how to add custom display rules.

    www.youtube.com/watch

    www.youtube.com/watch

    2.Control the display rule of button based on one permission in security roles.

    ribbonworkbench.uservoice.com/.../76681-hide-a-standard-out-of-the-box-button-based-on-a

    community.dynamics.com/.../618588

    www.crmconsultants.co.uk/.../

    Hope it helps.

    Best Regards,

    Leo

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans