Hello
I create project based on c# , and i make roles like admin and users , so that i want to give special premission to users to perfom tasks .

if anyone know how i can make or write this code , please help me .

and in advance THANKYOU.

Please read the Daniweb Posting Rules and Suggestions For Posting Questions.

What you probably want is a login form that is presented to the user before allowing the main form to display. You'll either have to maintain a database of user roles, or if you are working with a Windows Domain, a domain group for admins and users.

You could also use paid tools such as Auth0.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.