Bypassing multitenancy directly from code interfaces
I know there is the
multitenancy :bypass
option for read actions but is it possible to pass it as an option in code interfaces as well?
Something like this or similar is what I'm looking for:
7 Replies
No, and we likely wouldn't add it TBH
But there is an option that just allows bypassing tenancy IIRC
As opposed to always bypassing
Just lets you not specify a tenant
That would be cool, that way I don't have to create yet another action(s) just to bypass tenancy
I think it's like
multitenancy :allow_global
Like that goes in the action, not as an option I mean
Just allows calling the action with or without a tenantMm I think that still requires me to create additional actions just to bypass tenancy?
I find myself doing this
I think a better approach - for this resource at least - is to enable it directly from the multitenancy block with the
global?
option
Yeah that allows me to reuse the interfaces that I had defined inline without creating additional actions
Appreciate the assist this late, Zach — peak support right there
I think you can do it per action with
multitenancy :allow_global
in the action you want to allow global
But doing it at the resource level works too