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

  • SEARCH
  • Home
  • 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 52097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:51:13+00:00 2026-05-10T16:51:13+00:00

We are building a multi-tenant website in ASP.NET, and we must let each customer

  • 0

We are building a multi-tenant website in ASP.NET, and we must let each customer configure their own security model. They must be able to define their own roles, and put users in those roles. What is the best way to do this?

There are tons of simple examples of page_load events that have code like:

  if (!user.InGroup('Admin')        Response.Redirect('/NoAccess.aspx'); 

But that hard codes the groups and permissions in the code. How can I make it user configurable?

  • 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. 2026-05-10T16:51:13+00:00Added an answer on May 10, 2026 at 4:51 pm

    Perhaps put the configurable roles in a DB table, where you store the roles and tenant, and then the PagePermissions in another table, for example:

    Table 'Role' RoleId, TenantId, Role  Table 'PagePermissions' PageId, RoleId  Table 'UserRoles' UserId, RoleId 

    Then in the page load check whether the User is in a RoleId that has permissions for that page, for example:

    Select PageId FROM  UserRoles UR INNER JOIN PagePermissions PP ON UR.RoleId = PP.RoleID WHERE UR.Userid = @UserId AND PP.PageID = @PageId 

    If there are no rows returned then deny the user.

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

Sidebar

Related Questions

I'm building a multi-tenant ASP .NET application. Given that each tenant can configure their
I'm building a multi-tenant app with ASP.NET MVC and have a problem with validating
We are building an ASP.Net MVC 2 multi-tenant application on SQL Server using the
When building a multi-lingual website (with ASP.NET web forms), I'll use an HTTP module
I'm building a simple multi-user (multi-tenant?) App with ASP.NET MVC3 and EF4, one database,
I am building a multi-user web application. Each user can have their own site
I'm building a multi-tenant web application where for security concerns, we need to have
I'm building a multi-threaded service application in Delphi XE2. Each thread serves its own
I'm building a multi-tenant app with a shared database using .NET MVC 3 and
Hi we are building an multi tenancy solution where each tenant will have its

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.