The target scope (global or another application) does not have a Cross-scope Access Policy record configured to allow access from the requesting application scope. (high likelihood)
The Cross-scope Access Policy exists but is inactive or has restrictive conditions that prevent access to the specific resource being requested. (high likelihood)
The script is trying to access a table, API, or resource that is explicitly restricted from cross-scope access regardless of policies. (medium likelihood)
The application scope configuration has 'Enforce application scope' enabled but the necessary cross-scope privileges have not been granted through the Application Access tab. (medium likelihood)
The script is running in a different scope context than expected due to impersonation or elevated privileges changing the execution context. (low likelihood)