When many users developed an application, there are many different type of privileges for them. In short role management is the concept to create users with their specific privileges.

By role management we set group of authenticated users. By role management we can decide what user can show, and which information should be hide from that group.

In c# we set role to specific class or function, which will be specific below:

In our system we have some different role like super admin, admin and client and so on. Let see how to create in C# MVC :

[Authorize(Roles = "superadmin,admin")]

public PartialViewResult _GenerateReport(){}

So we have a function _generateReport which will generate a xyz report after execution. With authorize we decide and set that this function will be accessible by both super admin and admin, but any other users in this case it is not accessible for client.

11 years and counting

Singsys works with clients to implement digital strategies that exceed their expectations. We have delivered innovative solutions by constantly growing our expertise in web, mobile apps and social media. We believe in creating great user experience to help our clients to move their business to next level of success. Our aim is to achieve total customer delight by exceeding the customer's expectation. We have talented and savvy professionals with ample experience in the industry that help us gain well-defined insights into customer needs.