How to test for Cross Scope Access Privilege in Script?

G24
Kilo Sage

I have script which loops through tables, checking for things...

On some tables, I receive the following error when I attempt to query them.

2023-01-25_17-44-01.png

I do NOT want to fix the issue.  I do NOT want to add Cross Scope permissions.  Please do not tell me how to do this.

I just want to AVOID these error messages and SKIP the tables which may cause them...

 

So, how IN CODE, do I test for cross scope access, so that I may avoid these messages?

I am already doing "if myGR.canRead() ... " but that is apparently not sufficient.

I'm sure this is an easy thing to do; I just don't know the right command / function.

Thank you!

1 REPLY 1

Michael Domke
Tera Guru

Did you ever find a solution for this? I have the same interest when looping through tables, checking for "things".