Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6634283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:54:42+00:00 2026-05-25T22:54:42+00:00

I am working on a Windows application in C# (.NET 4.0) and need something

  • 0

I am working on a Windows application in C# (.NET 4.0) and need something to implement some basic ACL rules or more specifically, apply certain configurations based on the user type.

The application has license keys that we are able to use to determine the user type (i.e. User, Installer, Engineer) among other pieces of information.

Based on the type of user, certain features, menus, buttons, and display data will be different. I could just hard code showing and hiding of these elements in the application based on the user type, but we have a permissions matrix that defines the permissions so I would like to create an ACL so we could easily audit the matrix to the application code.

I have looked around but a lot of the ACL and security code in the System.Security namespace seem to be made for Windows and Filesystem ACLs.

Can someone recommend any existing classes (preferably free) that implement simple ACL’s in C#.

I just need to be able to do something like this:

ACL acl = new ACL();
acl.addRole("User");
acl.addRole("Manufacturer");

acl.addResource("SpecialButton");

acl.deny("SpecialButton");
acl.allow("SpecialButton", "Manufacturer");

// so later in my app I can do

theUserType = "Manufacturer";
// ...
if (acl.isAllowed(theUserType, "SpecialButton")) {
    SpecialButton.Visible = true;
}

I’m not looking to try to stop people from tampering with code at runtime, if they want to go out of their way to do that then they can, but I would like an easy way to create and query the ACL’s to determine how the GUI looks and what options are available when the program is loaded based on the key.

It’s easy enough to create this but if it is already done then that is even better.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:54:43+00:00Added an answer on May 25, 2026 at 10:54 pm

    There really isn’t much to what you are talking about.

    You have Roles and Roles have Attributes. A single attribute might appear in one or more roles. Simple enough.

    The license key defines the role in use. From that, load the list of attributes which could be either a stand alone list of characters (“OPENCONTACT”, “EDITCONTACT”, DELETECONTACT”) or name value pairs (100=OPENCONTACT, 101=EDITCONTACT, etc)

    Although you can use AzMan for this, it’s a bit more than it sounds like you need.

    The Role / Attribute list could be delivered as an encrypted resource that’s loaded at runtime…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to use linq in C# Windows form application working with .Net Framework
I'm working with C#.net developing applications for windows mobile 6, and i need get
I am working on a Windows Forms application in C#/.Net. I want to use
I am working on a VB.Net Windows application. I am trying to use MaskedTextBox
hello i have created one windows application in c# .net and its working fine
I am working on an old .NET 1.1 windows application. In the debugging configuration
I am working on a mobile application in .NET. This is a windows mobile
I'm working on a Windows Forms (.NET 3.5) application that has a built-in exception
I've a (C#).NET GUI application. Where I need console for displaying some output. The
I'm working on a .NET Windows application that will use Process.Start to launch another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.