
- 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-23-2018 10:21 AM
Hi,
There is a new role introduced in London called "Customer Case Manager" (sn_customerservice.customer_case_manager). Customer (user) with this role can perform following activities through Portal -
- Create a case on behalf of another contact in the account
- View a list of cases belonging to the account
- Edit cases belonging to the account.
Please take a look at the product documentation for additional details.
Thanks,
Parag Mone

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 02:37 PM
Thanks Parag, But we are using Kingston Release.
- 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 07:55 AM
HI Chani,
Thanks for script,
I tried this script now its showing a message in bottom as "5 rows removed by security constraints"
Can you tell me which ACL are blocking those records.