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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:44:49+00:00 2026-06-15T10:44:49+00:00

i have an ASP.net (.net 4, c#) web application (Backend: SQL Server 2012). The

  • 0

i have an ASP.net (.net 4, c#) web application (Backend: SQL Server 2012). The permission concept (what data is each user allowed to see) is processed within the web application.

The permissions come from different sources:

-AD group memberships:

  • AD group name is linked to properties of the records

-Underlying database:

-Users are assigned to different criteria

  • Organizational structure

  • Location structure

  • Direct assignment

Currently all this is processed within the web application. So I collect all the users permission and then I query the database for the data he is allowed to see.

Now I need to bring the permission concept to database level.
The target is that the users can query the database (pre defined views) almost directly (Reporting Services, Excel and so on)

Any idea how to solve such an issue?

Thought about joining the user’s permission on the foreign keys. But that’s not possible for the AD permissions.
Or maybe creating a dll and calling this dll from a stored procedure. Then the view joins the stored procedure.

  • 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-15T10:44:50+00:00Added an answer on June 15, 2026 at 10:44 am

    You should look at defining roles in the database http://msdn.microsoft.com/en-us/library/ms188659.aspx .
    Then grant permissions on different tables or views depending upon your requirement. I have seen data being exclusively read from views. So, that could also be an option.

    EDIT:

    So, it looks like you need row level security. Please read this guidance from Microsoft.

    http://technet.microsoft.com/en-us/library/cc966395.aspx

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

Sidebar

Related Questions

My ASP.NET application is using SQL Server 2008 backend. I have a Web Form
I have an asp.net web application written in C# using a SQL Server 2008
I have an ASP.NET MVC 3 application with a SQL Server 2005 database backend.
I have a ASP.NET application that connects to a SQL server backend on another
I have an asp.net web application backed by SQL Server 2005, and I want
I have a ASP.NET web application which has more than 100 pages. Each page
We have a wonderful ASP.NET MVC 2 web application using MS SQL 2008 and
I have a web application written in C#/ASP.Net and the backend DB is Oracle.
I have an ASP .NET web application which on the backend is talking to
We have an asp.net web application that uses nHibernate with our Oracle backend DB.

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.