
Compound access grant logic
Now you can combine AND/OR (well really | and &) in your access grants.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
planning to show something else. I see you backstage. There you are. Yeah. Yeah. I've got my other demo set up. Um wasn't sure if you were gonna show something, so I was waiting to hear from you. Uh I'm just peanut gallery. We love the peanuts. Okay. I am going to once again share my screen. And actually, uh, fun fact, for the purpose of this demo, I'm just gonna like take advantage of the last demo, uh, that I just did, um, because it's a more convenient way to do this.
So, um, this is kind of more of like as far as that is concerned, this is more of the like developer modeler use case for the feature I just showed off. So, um, this week, uh, I responded to a customer support request asking like for details about how to set up some access grants and the required access grants and they had kind of a complex situation where they've got, you know, they want all admins to get the access and then um, well, anyway, I'll show the demo.
it'll make it easier to to explain. But but for the purpose of the demo, I've just set up like these four really, you know, simple access grants, fooar, baz, and bop. The allowed coming from same named user attributes, and the allowed value is just true. That's I I think easy enough for us to get our heads around.
And then um I've got this topic here. And of course, access grants, required access grants are allowed for topics. They're also allowed for views and fields. So this all works for for views and fields as well. The the the the new functionality that I added in response to this support uh request this week is we already supported uh pipes or you know vertical bars to declare or conditions within required access grants.
But now you can actually use amperands to define and conditions within an or condition. And it's worth noting that the and binds more tightly. So what this here is saying is in order for them to ha to be able the user to be able to see the this grants required topic they need to either have foo and bar grants satisfied or have bar baz and bop grants satisfied.
So, just to show it working in uh in the real world, here I am. Um, and like I said, I was going to just utilize the um the attribute override feature that I just showed a few minutes ago. Uh, so currently my attribute overrides are food, bar, baz are all set to true. That means that I do have access to the grants required topic because foo and bar are met.
If I were to unset that, if I come back in here, you can see I no longer have the grants required attribute. If I came over to here and set the bop to true, now it satisfies the other side of that or condition because both baz and bop are true. come in here. Tada. The grants required topic is back.
So just a little enhancement that gives us more expressiveness in the required user or the required access grants definitions so that you can combine access grants in in more um complex fashions.