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
Thanks Prashant Shukla. It worked like a charm.
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;
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 !
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156