
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2018 06:20 AM
HI all,
We have requirement where,
All cases created for same accounts are currently accessible by sn_customerservice.customer_admin (Customer Admin) role.
But customer want users with sn_customerservice.customer (Customer User) role also have access to all cases created for his account. (at least read level).
How can i achieve this...
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Customer Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2018 12:04 PM
On Case table we have a before query business rule called "Case query for Customer" which will be governing the cases that have to be accessed and presented to the CSM users. If you want the users with role sn_customerservice_customer should also able to access the cases of their account, then update this BRule as below
(function executeRule(current, previous /*null when async*/) {
if(gs.hasRole('sn_customerservice.customer')&&!gs.hasRole('sn_customerservice.customer_admin')&&!gs.hasRole('sn_customerservice.partner')&&!gs.hasRole('sn_customerservice.partner_admin'))
current.addQuery("account",gs.getUser().getCompanyID());
else
new global.CSQueryBRUtil().addCaseQueryBR(current);
})(current, previous);
This will definitely work.
Please mark 'Correct' or 'Helpful' if it is so
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 08:18 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 02:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 03:42 PM
Add sn_customerservice.customer role as one of the roles in the OOB ACL sn_customerservice_case.contact. This will let the customers also to see the contact column. I verified it and it worked.
Please mark all the replies which helped you as 'Helpful' and mark one of them as 'Correct' - This would help others and also me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2018 04:33 AM
If my last reply to update OOB ACL sn_customerservice_case.contact helped you, please mark it 'Helpful'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2021 07:14 AM
Hi @Chanakya,
We were also having same requirement, and we have customized this BR and This is working fine as well.
As I have read that in Quebec Release, CSM Query Rules are getting introduce in ServiceNow.
Just checking with you, Do we have face any issues while customizing this OOO BR Query.
Thanks,