web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Only current owner of Case should be able to close it as solved

(0) ShareShare
ReportReport
Posted on by 352

Hi, our customer is requesting that only the current owner of a case should be able to closed as solved. Is there any simple way to do this using permissions in Security Roles? Any other suggested approach to do this?

Best regards,

Xavier Villafuerte

*This post is locked for comments

I have the same question (0)
  • Verified answer
    PS Profile Picture
    23,577 on at
    RE: Only current owner of Case should be able to close it as solved

    Hi Xavier

    Create a real time workflow and run it on case status change

    Check condition if Case status= resolved and case owner does not equal to case last modified by

    Action, stop workflow with a status of cancel (Enter your message for users here)

    That's it !

  • Suggested answer
    Zohaib Uddin Khan Profile Picture
    2,822 on at
    RE: Only current owner of Case should be able to close it as solved

    Solution #1: Reduce the privilege of 'Write Case' and 'Append To Case' as User level access.

    Solution #2: Write a Synchronous Plugin on Message: Update, Entity: Incident and in that plugin check if statecode and statuscode changes to Resolved then check current user vs owner

    In order to find Current User:

    IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));

           IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));

       Guid userId = context.InitiatingUserId;

  • Xavier Villafuerte Profile Picture
    352 on at
    RE: Only current owner of Case should be able to close it as solved

    Thanks Prashant Shukla. It worked like a charm.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans