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 8867889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:08:42+00:00 2026-06-14T17:08:42+00:00

I have an existing ASP.NET MVC application that is working well. It provides a

  • 0

I have an existing ASP.NET MVC application that is working well. It provides a select group of people with a set of management functionality. I am now tasked with allowing a much larger group access to a very limited portion of the exact same application.

Is an ASP.NET MVC Area the way to do this? The reason I ask is because I would like to have all users visit the same web page (mysite.com for example) and I would like the look and feel to remain the same (take advantage of the same master page files or _Layout.cshtml).

The current setup, is that all users have equal access (full) to all data the system presents.

So when Bob goes to

/People/Index 

he sees everything, and when Sally does, she sees the same thing.

Now I need to allow a bunch more individuals to access this same thing. So when Cindy goes to

/People/Index

All she will see are people who report directly to her, and the same for Dave, and everyone else who is not specifically part of the “admin” group who get full access to everything.

The uri here, is not important to me; but what I do want to do is be able to recycle the same layouts and views, while using a different set of controllers (which have additional business logic to only show the subset of data).

Is an ASP.NET MVC Area the correct way to do this? If not, a pointer in the right direction?

  • 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-06-14T17:08:43+00:00Added an answer on June 14, 2026 at 5:08 pm

    If the only requirement is that the data be limited to those people/items directly related to the user, I would do this in your data tier. When you go to load the list of users, return only the users Cindy has access to. Perhaps have a user-table flag for whether the user is an admin user or not.

    public IEnumerable<User> GetUsers(User requestingUser)
    {
        if(requestingUser.IsAdmin) // return your full list of users
    
        return // list of users filtered by reporting to requestingUser
    }
    

    If you do all this logic in your data layer, the users all use the same site and go through the same page-flow, just what displays in the pages is limited. Of course you could also test the user’s admin flag when rendering certain parts of views as well, etc.

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

Sidebar

Related Questions

I have an existing asp.net web application that I'm updating to include some MVC
I have an existing ASP.NET web application that I'm converting to MVC 1.0. The
I have an ASP.NET MVC 4 application that needs to use an existing API
I have an existing ASP.NET MVC 2 application that I've been asked to extend.
I have an existing 32-bit ASP.NET application that used 32-bit unmanaged DLLs. If I
I have a silverlight application that I am embedding in an existing ASP.NET web
I have an existing ASP.NET MVC application with some sample data in the SQL
Background I'm working on building an ASP.Net MVC 3 application that utilizes: JQueryUI for
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
Curious what recommendations anyone has. I have an existing asp.net forms application that does

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.