HI,
I wonder if it's possible for some users to hide a schema (user just not see the schema in the table list...)
I've tryed "visibleIf", "enabledIf" but doesn't work.
Any idea ?
Regards.
Stéphane
Views
Replies
Total Likes
Hi @stephaneAD,
You can use sysFilter to Restrict Schema Access.
The sysFilter element in a schema allows you to define conditions that control who can read or write to the schema. By setting a readAccess filter, you can prevent non-authorized users from even seeing the schema in the interface (e.g., in the query editor or table selection dropdowns). This approach leverages expressions like hasNamedRight() or $(login) to check user permissions or identity.
Here’s an example of how to modify a schema to hide it from all users except those with the "admin" named right:
<srcSchema name="customSchema" namespace="cus">
<element name="customSchema">
<!-- Restrict read access to admin users only -->
<sysFilter name="readAccess">
<condition enabledIf="hasNamedRight('admin')=false" expr="FALSE"/>
</sysFilter>
<!-- Your schema attributes and elements go here -->
<attribute name="id" type="long" label="Identifier"/>
<attribute name="name" type="string" label="Name"/>
</element>
</srcSchema>
If you want to limit visibility to a specific user (e.g., "admin" login), you can use $(login):
<srcSchema name="customSchema" namespace="cus">
<element name="customSchema">
<sysFilter name="readAccess">
<condition enabledIf="$(login)!='admin'" expr="FALSE"/>
</sysFilter>
<attribute name="id" type="long" label="Identifier"/>
<attribute name="name" type="string" label="Name"/>
</element>
</srcSchema>
Here, only the user with the login "admin" can see the schema.
Thanks
Sushant Trimukhe
Views
Replies
Total Likes
Hi Thanks for your answer.
My point is not to filter data, but filter the global schema ...
In this example :
I would like that the "Blacklistage_FUR" should not appear in the list for some users.
Adding a filter at the "element" level of the schema .
Regards.
Stephane
Views
Replies
Total Likes