Better Error Messages for Denied Dynamic Permissions
exploring
R
Rao Komar
When a self service action is unable to be executed due to the dynamic permissions not allowing the execution, the error message logged provides no context about what specific part of the dynamic permission caused the action to be denied.
This makes troubleshooting and building permissions incredibly difficult as you have no idea what part of the permissions policy/condition caused the error.
The error message should explain what aspect of the policy's query/condition caused the rejection of the execution.
Gur Shafriri
exploring
Matan Grady
From the Builder side, we are exploring an improved UI to manage the dynamic permissions and test them.
It won't solve the problem from the developer-side, but will allow more "debugging" capabilities to the builder.
Feel free to upvote!
Matan Grady
Merged in a post:
Give the option to add a customizable error message when not permitted to run an action
H
Hadar Cohen
When you are not permitted to execute an action, there is a hard-coded message without any additional details.
In some cases, such as when using dynamic permissions, there is a specific reason why you cannot execute an action.
In the "permissions" tab of the action creation form, add an option to provide an error message that will be displayed to the user in such cases.
L
Lucas Kenda
We also need this feature to avoid doing a lot of tests to find the errors. Thanks!
Matan Grady
Lucas Kenda great input, we are currently exploring a better UI to help you find the errors in advance.