This content has been marked as final.
Show 3 replies
-
1. Re: Prevent queries directly against a Model which is marked 'visible=false'
rareddy Feb 20, 2017 8:07 PM (in response to jrod2016)That is by design, the "visible" flag only applies to the metadata. If you want to deny access to the whole model, then create a "data role" and deny access to every one. For ex:
<data-role name="DenyAll" any-authenticated="true"> <permission> <resource-name>GoSalesModel</resource-name> <allow-create>false</allow-create> <allow-read>false</allow-read> <allow-update>false</allow-update> <allow-delete>false</allow-delete> <allow-execute>false</allow-execute> </permission> </data-role>
read more about data roles at Data Roles · Teiid Documentation
-
2. Re: Prevent queries directly against a Model which is marked 'visible=false'
shawkins Feb 20, 2017 8:17 PM (in response to rareddy)1 of 1 people found this helpfulRamesh beat me to the punch on the answer, but we need to clarify that when data roles are used Teiid denies by default. So you need to add permissions to GoSalesView, rather than take them away from GoSalesModel.
-
3. Re: Prevent queries directly against a Model which is marked 'visible=false'
jrod2016 Feb 21, 2017 2:32 PM (in response to rareddy)Excellent! That worked. Thanks guys.