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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:14:44+00:00 2026-06-12T12:14:44+00:00

I have created an MVC4 Web App with Windows Auth. Is it possible to

  • 0

I have created an MVC4 Web App with Windows Auth. Is it possible to define which users have access to what using something like: [Authorize(Roles=”Admin”)] without relying on AD i.e. specified within database table or within App itself?

  • 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-12T12:14:45+00:00Added an answer on June 12, 2026 at 12:14 pm

    Absolutely. You need to create a custom role provider that checks role memberships based on whatever you have on the back end.

    The custom role provider derives from System.Web.Security.RoleProvider, and you need to override at least the GetRolesForUser and IsUserInRole methods.

    The GetRolesForUser method is the one used by the Authorize attribute. After the user is authenticated the attribute calls this method with the user’s SamAccountName and expects the method to return a string[] containing the names of the roles the user is a member of.

    See http://msdn.microsoft.com/en-us/library/8fw7xh74(v=vs.100).aspx for more details

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

Sidebar

Related Questions

I've created a method using the new WebAPI features in MVC4 and have it
Using ASP.NET MVC4 I have created a DelegatingHandler in a WebAPI project. I use
I am using EF5 codefirst in an ASP.NET MVC4 app. I have products and
I have created a custom razor helper in my MVC4 Web application that I
I have a custom Principal/Identity for my ASP.NET MVC4 web app. I have also
I have created a Single Page Application (ASP.NET MVC4) using Steven Sanderson's instructions .
I have created a smalldatetime field. I am using a dbml file to access
I have created a windows service which is set to start automatically. This service
I have created infopath form library in SharePoint sever2010. I am using Windows server
I have a simple asp.net MVC4 / EF 4.1 project created with VS 2011,

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.