20 - Adding Action Security and Submission criteria
This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.
📖 Task Introduction
In our notional scenario, you could have one analyst performing the triage and assignment of alerts while the assignee performs the Actions. This would have implications for your other Actions validations, but let’s at least build in that assumption into your Function-backed one. For this Action to be taken, the user must be the assignee listed on the object.
An expandable image of these steps can be found at the bottom of the task.
🔨 Task Instructions
Click Security & Submission Criteria from the menu on the left.
By default, the criteria you designated (i.e., the submitting user must be you) on Action creation appears. Click the x to the right of that criteria to start from a blank slate.
Click the underlined word condition to ➕ Add a condition.
In the Select condition template panel on the right, choose Based on current user.
Remember that we want the logic to stipulate that the user’s ID must match the assignee property on the flight alert in question.
Click user id from the list of values.
Click the is operator.
Click the Parameter button in the Select a value section on the next screen — we want to compare the user's ID with a property on the flight alert.
Click the Alert parameter.
Choose the Assignee property from the list.
Enter the following failure message at the bottom of the panel: Only the alert assignee can apply vouchers.