The CreatorCon Call for Content is officially open! Get started here.

Restricting scoped application

Ragav5
Kilo Expert

Hi All,

I created a custom application (scoped application). This application should visible to the user who belongs to particular department from user table.

For example:  

There is a department "abc". So the user who logins, if he belongs to that department, he/she can able to see my custom application. For other department it should not visible.

Thanks in advance.

Regards,

Ragav

7 REPLIES 7

Hi Subhankar,



How to write that appropriate script?


We are facing issues there only.


Steps to build the condition :


1. get the user details through 'gs' object. e.g. gs.getUserID() WIKI : Get a user object


2. Glide into user record or to department record and validate the user department data. OR do a dot-walk if the department field is present in the user table.


3. If condition matched return 'true' or 'false' based on your criteria.


paramveer
Mega Guru

Hi Raghavendran,



By the ACL you can just restrict the Table, You can not restrict the application availability in left navigation by ACL.



Thanks,


Param