Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Cross Scope Issues

samadam
Mega Sage

I have a custom app that has a table on change of status on this I need to update the sys_user_group table. I have business rules to do it but I keep getting cross scope errors. I added a cross-scope privilege and tried to clear cache but still not working. There are no caller access restrictions. Also tried to add the application to update set but did not help. Any ideas how to fix? Group table has the Allowed access for write and create.

3 REPLIES 3

GlideFather
Tera Patron

Hi @samadam,

 

"I keep getting cross scope errors" - what errors are you talking about? this is too abstract to help you, could you possibly share that error?

 

Also, sharing your business rule would definitely help to review it

_____
Answers generated by GlideFather. Check for accuracy.

samadam
Mega Sage

Error Message

Write operation against 'sys_user_group' from scope 'x_g_test_mgt' has been refused due to the table's cross-scope access policy
 
After BR on the custom table:
var grp_rec = new GlideRecord('sys_user_group');
    grp_rec.addQuery('sys_id', current.assignment_group);
    grp_rec.query();
    if (grp_rec.next()){
        grp_rec.u_update_required = false;
        grp_rec.update();
    }

Hi @samadam 
You are trying to update sys_user_group table which is Global scope from your custom scope, which causes cross-scope issue. you need to grant Cross-Scope Previliage to this.

Select your scope in the application scope picker,
Go to Application Cross-Scope Access 
 Screenshot 2026-04-08 130327.png

Create New Record:
Source Scope and application should be your custom scope
Target Scope - Global
Target Name - sys_user_group
Target Type - Table
Operation - Write
Status - Allowed
Screenshot 2026-04-08 130548.png

Clear your cache


Regards,
Kali