
Default row level access controls (launched)
Default row-level access controls. Now rather than encoding access-filters on individual topics, they can be default-set globally. A new best practice for embedded deployments to lock up…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
well I can also demo some access related Feature work that I am mostly done with this week uh still need to work a little bit on some of the layering and tests but uh we'll give a little preview here people see my screen imagine they do uh so so I've added two new items to the top level model uh so there's default topic required access grants and default topic access filters these I'm just demoing both of these things at the same time because they're related but you don't actually have to have both of these in action for this to work so just a overview of what I've got in my model here is i' I've created a an access Grant um oh am I you
don't see or am I muted wrong screen oh bummer okay hold on let's try again screen two is that better yeah are sorry about that so now we're looking at my model I've got uh two new top level model attributes default topic required access grants and default topic access filters you can see that the structure of these is identical to you know the the structure of access filters and required access grants in the topic so this is a way to kind of set for this entire model unless you override it at the specific topic level um apply these access grants or or access filters and the use case for this would be like oh hey you know like I'm in Ed and I want to
restrict this I want to have these customers always see just their own data and uh rather than having to apply that remember to apply that with each topic I create this will make it so that I would have to opt out of the an access filter or an access Grant um intentionally so I don't accidentally expose it uh a topic or an unfiltered topic um by not applying those at the at the specific topic level uh so you can see I've got the two user attributes that I'm using for this one's the user age filter one is the food Adder uh you can see I've got these I just set the default value to disallowed on say FU Adder so I'll show you that the
access brand stuff first you can see I've got the users topic is just going to accept the going to use the defaults for both of these the no Grant required topic I've overridden the required access grants to empty so that one's going to show regardless of what that access Grant user attribute value is and then no restrictions will also show and will not pick up the um the default access filter so there will be no access filter applied to that one so let's uh let's see in action and go into a new analysis from this model and you can see that the users model or the user's topic sorry which is taking this default is not showing up if I come in I'll uh update
my the default on that user attribute to allow and if we come back into here you can see that now the users's topic is showing up because it passes that access Grant and then I've got uh the no Grant required I'll just select age and you can see that I've filtered this to age equal 21 back in here you can see the default of age 21 and if we switch into the no restrictions so this one doesn't have access Grant or anything um and select the age I already did that already had age selected this one's unfiltered so um just a way to kind of be more defensive in how you develop your models if there's any kind of sensitivity to to which topics or
uh column level data is or row level security you want to to apply and that is that I feel like immediately this becomes the recommendation for all embedded use cas is like it just makes no I can't believe that we didn't do this last time actually 100% And it's also it's just so that everybody knows it's you can overwrite it at the topic level but it's not uh like cumulative or additive at the topic level so if you've got default access filters on something if you want that same access filter and another one applied on a specific topic you would have to actually respecify the the one that you had in the in the default because it's not going to combine them it's like if
there's nothing set in the topic you'll get the default