I have UI screen where "Admin" of gateway need to select the options of modules/view they can able to access based on the role.
Example:
I have settings, Reports screen. While creating user and roles, he need to assign what are screen he can assign.
User- op1, Role-operator, Screen can access - settings
User- op2, Role-operator, Screen can access - Reports
We can add as developer in gateway/in each view/in each component. But admin need to add in UI how new user and role has been added in views.
Hope I have clearly explained the need!
any idea can be done via scripting using system functions?Kindly help
system.user | Ignition User Manual
These system functions will allow you to add/edit users and roles directly from project and event scripts, which will allow to achieve the functionality I think you're looking for from your Perspective project.
Thank you for your reply. I can able to add roles here.
But I need to make role based access for that screens.
Example: op1 only have access to view1
op2 only have access to view2.
Like need to done in script instead of doing here
Ok, I think I understand. I am not aware of way to do this exactly how you would like (not saying it's impossible I just don't know).
But a solution to this could be to create a single role for each individual screen and then configure those in the view permissions ahead of time. Then you could allow the Admin to add/remove those roles to users in your existing view. This might not be the most scalable solution, but it should work like how you are describing it.
Thank you for your reply. Understand your input. But still I am searching for my solution.
Any other inputs are welcome
I don't understand what you are trying to do.
have UI screen where "Admin" of gateway need to select the options of modules/view they can able to access based on the role.
The admin can access everything. I think you mean "that the user can access".
The normal way to do this is:
- In Designer decide what roles can have access to a view.
- In User Management assign roles to users.
Normally Users and Roles are configured on the gateway web page. A much easier way is to include the Perspective User Management by IA Sales Engineering module which is freely available on the Ignition Exchange.
Include this module in a view in your project. Of course, only administrators should have access to this view.
Thank you for your reply, Yes we reused the same .
may be I am confusing,
Just need to give access to respective module based on the role in UI part not by backend designer part.
In above image, I will create the user and assign the role , while assign role i need to select options to view/edit dashboard for user according to the role.
Ignition's Users and Roles (and Perspective User Management module) will do that for you. It's already part of Ignition and not just for the gateway. You can use it in your Perspective applications too.
You are re-inventing something you already have!
Thank you for your reply. Understand. Will work on it.