The only way is to define through a the database.
Define resources and their privileges and those are given yo specific users. Eg a resource like user details can have privileges like, view, add, edit, delete, print, deactivate, etc. A user can be given some or all privileges. This privileges can be extended to include fields available for the user to edit or add input.
On the UI just check if the privileges are set to true and when conditions are met u display or enable.
This approach will. Make it easy to manage roles and permissions in respect to resources thatyou need accessed.
Sent from my Huawei phone
-------- Original message --------
From: Nicholas Odanga <
niodanga@gmail.com>
Date: Tue, Nov 30, 2021, 5:59 PM
To: Isaac Kimotho <
izakimotho@gmail.com>
Cc: Skunkworks Mailing List <
skunkworks@lists.my.co.ke>
Subject: Re: [Skunkworks] User roles definition in .NET
Thanks, Isaac for the reply.
The client requires that certain users need to be accessed only certain fields so that they can update the data.
Apart from creating views and assigning access to it.
Is there any other way?
PS: The application is running on
ASP.NET 2 which was introduced in the market in 2005.
--

=================================Isaac Kimotho Kanyanja
Software Engineer
Skype: kimotholefty
--