Skip to main content
tejashriw155148
Level 4
Jun 8, 2020 6:24 AM UTC
Question

Restrictions to access folder in schema

Hi,

 

How can I add restrictions in the schema - means I have created company operator group. If user doesn't have access to the company operator group, then it should not be able to access in the schema.How can I use sysFilter in schema to access group.

 

Regards,

Tejashri

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

8 replies

Milan_Vucetic
Level 9
Jun 8, 2020 6:57 AM UTC

Hi @tejashriw155148 

below conditions will restrict access to all users which not belong to the company group.

<sysFilter name="readAccess"> 
 <condition enabledIf="hasNamedRight('company')=false" expr="FALSE"/>
</sysFilter>

<sysFilter name="writeAccess">  
 <condition enabledIf="hasNamedRight('company')=false" expr="FALSE"/>
</sysFilter>

Regards,

Milan

Translate
tejashriw155148
Level 4
Jun 8, 2020 8:39 AM UTC

Hi @milan_vucetic @davidkangni @isahore 

 

I want to give schema access to those users only who login as admin or internal and the users who have "company" as operatorGroup/namedRight.

I tried below logic in the schema but its not working.

 

<sysFilter name="readAccess">
<condition enabledIf="true" expr="hasNamedRight('bank')=true OR $(login)='admin' OR $(login)='internal'"/>
</sysFilter>

 

What should I do?

 

Thanks,

Translate
isahore
Community Advisor
Community Advisor
Jun 18, 2020 7:23 PM UTC

Hi @tejashriw155148 ,

This should work:

 

<sysFilter name="readAccess">
<condition enabledIf="(hasNamedRight('bank') OR $(login)='admin' OR $(login)='internal')" expr="1=1"/>
</sysFilter>

 

Thanks,

Ishan

Translate
tejashriw155148
Level 4
Jun 23, 2020 6:43 AM UTC

Hello @isahore 

 

I tried the above logic but its not working as expected.

When I logged in as user who is not admin or internal user and also doesn't have access of bank operator group, still able to access data from the schema..

 

The requirement is that:

Only the users who logged in as admin or internal or who has bank operator group should access data from the schema.

 

Thanks for your help.

 

Regards,

Tejashri

Translate