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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:04:11+00:00 2026-05-31T23:04:11+00:00

Are there any pre-existing solutions out there which would extend the built in SQL

  • 0

Are there any pre-existing solutions out there which would extend the built in SQL Membership Provider & Sql Role Providers in .NET with the concept of Group Membership.

Right now the Roles relationship looks like

Users ====> UserRoles <=====Roles

I’d like to extend that to look like

Users ====> UserGroups <==== Groups ====> GroupRoles <==== Roles.

Let’s say you have an application with 30 or 40 distinct roles in it. Each time a new employee joins the company, you have to remember which set of roles that department normally gets & then make sure you tick those 8 checkboxes while setting up their website account.

If you had a group concept, you could set up a “Group” for each department as a logical grouping together of the roles that departments employees normally get. Then you could just add new Employee’s to a single group.

Are there any out of the box implementations for this available already which might save me writing my own ?

  • 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-31T23:04:13+00:00Added an answer on May 31, 2026 at 11:04 pm

    I assume your desired model is basically like mine here, isn’t it? My Role is just a User-Group wheras the authorization is controlled by AccessRule.

    enter image description here

    My approach has the advantage that you don’t need to implement a custom RoleProvider at all since it keeps it apparently untouched. ASP.NET does not need to know that i’ve enhanced it at the other end. I also have implemented a template-function that enables to create new Roles by using another role as template. This is the list of AccessRules of the other Role(or of your default-role). I don’t need to use IsInRole to check authorization. I’ve implemented my own hasAccess method that checks whether or not the user belongs to a role that has a given AccessRule(f.e. DeleteXY).

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

Sidebar

Related Questions

Is there a canonical colorspace conversion library? I can't find any pre-existing solutions. Is
Are there any good tools for visualising a pre-existing database schema? I'm using MySQL
Is there any way to pre compile stored procedures in SQL Server? My requirement
Is there any way to easily create a workspace, based on a pre-existing template
Are there any existing solutions for remote execution of commands on a windows server
Are there any attributes to pre select some radio button in tag on page
Is there any query which can return me the number of revisions made to
I am working on a large pre-existing system and can't use any of the
I have a new MVC application which integrates into a larger pre-existing intranet site.
What my script currently does: grabs & cleans a $_GET['id'] pulls all pre-existing data

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.