Skip to Main Content

Check Authorizations

When copying Apex objects (like pages) between applications, you may end up with invalid references to Authorization Schemes, for pages, buttons, processes, etc.
In those cases, in the Designer you see something like this under Security: Authorization Scheme: !66636695904232337 (invalid).

Finding all these invalid references manually is quite a job. You would expect the Advisor to include a check like this, but alas.
So I created a view to find them for me - see the code below.
I have also included the query to find all Apex views that contain an authorization_scheme_id column, to build the actual view with. Not really needed here, but you may find that useful for other purposes.

Code

View

View
Name
DDL

View

View
Name
DDL