Restrictions to access folder in schema | Community
Skip to main content
tejashriw155148
Level 4
June 8, 2020
Question

Restrictions to access folder in schema

  • June 8, 2020
  • 2 replies
  • 3639 views

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.

2 replies

Milan_Vucetic
Level 9
June 8, 2020

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

tejashriw155148
Level 4
June 8, 2020

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,

isahore
Community Advisor
Community Advisor
June 18, 2020

Hi @tejashriw155148 ,

This should work:

 

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

 

Thanks,

Ishan

tejashriw155148
Level 4
June 23, 2020

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