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

paramveer
Mega Guru

Applications are role based. you can hide the table data by ACL but if you want to limit the application in left navigation then Role is the only key.



Segregate the users by creating a new role, and then give that role to application.



Thanks,


Param


Hi Paramveer,


We already suggested this solution. But customer don't want this solution.



Can you please help with any other solution.


This is correct. The Application Menu (and any modules underneath it) is displayed or hidden based on the roles of the user. There is no option to show or hide an Application Menu based on groups that the user belongs to. You can assign a role to a group using the related list on the group form, and have each group member inherit that role.



You can then restrict access to the Application Menu by that role. The modules themselves can inherit the same role restriction, or you can place additional role restrictions on the module (so that only users with an x_scope.admin role can see a Properties page module in your app, for instance).



Creating ACLs as suggested by Subhankar will only restrict access to the tables within your app, they will not affect the display/hide settings of the Application Menu and Modules in the navigator.


LearnerSubho
Mega Guru

Hello Ragav,



This can be easily accomplished through ACL.



Configure an <<Custom application table>>. <<-NONE->> ACL and use advanced option to write script.



In the script, write an appropriate script and to permit the access use 'answer=true', else use 'answer=false'.



Please let me know if you face any issue.