Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Cross scope Flow access issue to delete record in table sys_user_grmember

huyentp295
Tera Expert

I have a Flow to add/remove an user to a group (by creating/deleting records in the sys_user_grmember) based on the membership of another group. The creation works just fine, but when I test the flow I always received an error at the Delete Record action (it's run as me, who has `admin` role):

{
    "Action Status": {
        "code": 1,
        "message": "Scope does not have delete access to table sys_user_grmember"
    }
}

 I have enabled `Can Delete` access to all Application scopes

huyentp295_0-1720743081050.png

 

I also added an entry in the Cross scope privileges table

huyentp295_1-1720743081050.png

 

but the issue still persists. Appreciate any suggestion on how to fix this issue. Thank you!

1 ACCEPTED SOLUTION

huyentp295
Tera Expert

Reached out to Now Support and this worked for me:

 

Run Script - Background (in Global): 

GlideTableManager.invalidateTable("sys_user_grmember");

View solution in original post

2 REPLIES 2

Periyasamy P
Tera Guru

Ensure your Cross scope privileges record and flow in same scope. Refer KB0854565

huyentp295
Tera Expert

Reached out to Now Support and this worked for me:

 

Run Script - Background (in Global): 

GlideTableManager.invalidateTable("sys_user_grmember");