PDP based on multiple columns
Each row of my data can identify a type of transaction up to 6 different ways.
Example shortened to 3 transaction type columns:
cheeseburger | 1 | 5.25 | food | ||
t-shirt | 1 | 9.99 | retail | ||
combo pkg | 1 | 99 | giftcard | retail | food |
I want to create a PDP policy that allows a group to view all food type transactions. The policy would need to say if column1='food' or column2='food' or column3='food' then allow Food group. I tried creating a policy for each column allowing the Food group but PDP is treating the policies as an AND and not displaying any data unless all columns on a row contain 'food'. I can create a second policy on column1 for column1='retail' and allow the 'food' group which will then create a policy of column1='food' or 'retail' allow Food group. Any ideas how I can apply PDP across multiple columns?
Thank you.
-----------------
Chris
Comments
-
When we have something like this with an 'Or' situation on permissioning we end up scripting it so that multiple policies get created for the same person or group. So the update script might look like this for you:
target_ds policy_name delete_options policy_column user_group value
(datasetid) Group_col1 update column4 food_group food
(datasetid) Group_col2 update column5 food_group food
(datasetid) Group_col3 update column6 food_group foodThis way each column will have it's own grant permission and you group will be able to anything with the 'food' in that row of data.
Hope that helps. Let me know if you have any questions,
Valiant
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.0 -
The security policy was not working as expected on Friday but now is working. When you say update script - is this an update dataflow or is there a scripting tool that will allow me to build and maintain security policies across multiple datasets? Doing it manually through the UI is very tedious and would love to have another option if possible.
Thank you.
-----------------
Chris0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive