Whats this all about? In a SaaS model, APEX provides an apex_session.set_tenant_id procedure to set a context. This context can be accessed by your VPD in determining the rows the user can access. However with REST, I have some questions... How do y...

Markdown supported · ⌘↵ to post
Neil Fernandez
Hi Matt,
Fantastic write up!
Want to note that this example now requires the use of setting up an APEX session for an ORDS handler whereas before there was no APEX session. So, this adds a small amount of overhead to each REST call which VPD requires set up regardless. One may want to consider using their own custom Context that they manage the set up of it if that becomes an issue. It should not be an issue for most. The write up above is ideal for the majority! Just wanted to add that in.
Also, for point 14 you mentioned QuickSQL breaks without that grant? Mind sharing that part? I did not see mention of QuickSQL until that part so wondering if that is a typo or if not would like to investigate what is occurring.
Best, Neil