PC Review


Reply
Thread Tools Rate Thread

Assume SQL Server Rights for apps, any cons?

 
 
=?Utf-8?B?U3RlcGhhbiBIb3BwZQ==?=
Guest
Posts: n/a
 
      21st Feb 2005
Hi,

I’ve got a requirement from one of my clients and I am not sure if there are
any cons. I am developing a data management software for him. He
administrates the underlying SQL Server 2000 database by himself. Now he
wants that my software assumes the user rights automatically from the SQL
Server. Please let me give you a short example:

Lets say we have a table called Customers. User A has the following rights
- select (all columns)
- update (only address fields)
- insert (deny)
- delete (deny)

My application offers a GUI to manage customers. If user A opens the form
the app should disable/hide the delete and insert buttons and disable all
fields user A is not allowed to edit.

My client wants to centralize the rights management what is not a bad idea.
He wants to define roles and rights dynamically. He has some other
applications who also read and edit data of this database so he doesn’t want
to give users the right to edit all values of tables and fields.

Do you see any cons?

Look forward to hearing any cons :-)

Stephan
 
Reply With Quote
 
 
 
 
Mary Chipman [MSFT]
Guest
Posts: n/a
 
      21st Feb 2005
Since your customer is the sysadmin on his SQL Server box, you need to
make sure that he is creating roles in his database and assigning
permissions only to roles, not to individual users. That way users can
be added/removed from roles based on the level of access he wants them
to have. Even if the role has only one user, he needs to set it up
this way. At runtime when a user first connects, your application can
retrieve the user's role membership, which you can cache locally in
your app and then use to enable/disable UI. If you try to do it any
other way, you'll end up with a big, hairy, un-maintainable mess on
your hands.

--Mary

On Mon, 21 Feb 2005 06:41:01 -0800, "Stephan Hoppe"
<(E-Mail Removed)> wrote:

>Hi,
>
>I’ve got a requirement from one of my clients and I am not sure if there are
>any cons. I am developing a data management software for him. He
>administrates the underlying SQL Server 2000 database by himself. Now he
>wants that my software assumes the user rights automatically from the SQL
>Server. Please let me give you a short example:
>
>Lets say we have a table called Customers. User A has the following rights
>- select (all columns)
>- update (only address fields)
>- insert (deny)
>- delete (deny)
>
>My application offers a GUI to manage customers. If user A opens the form
>the app should disable/hide the delete and insert buttons and disable all
>fields user A is not allowed to edit.
>
>My client wants to centralize the rights management what is not a bad idea.
>He wants to define roles and rights dynamically. He has some other
>applications who also read and edit data of this database so he doesn’t want
>to give users the right to edit all values of tables and fields.
>
>Do you see any cons?
>
>Look forward to hearing any cons :-)
>
>Stephan


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WebForms X MVC? Why MVC? Give me reasons to migrate my web apps to it please. Pros x Cons! Thanks! Paulo Microsoft ASP .NET 3 4th Dec 2008 03:00 AM
The effect of Network rights on Access Apps Lance McGonigal Microsoft Access VBA Modules 1 2nd Jan 2005 02:36 AM
User Rights to Legacy Apps Lee Windows XP Security 2 31st May 2004 12:15 AM
Apps Unable To Run w/o Admin Rights John Windows XP General 2 10th Apr 2004 04:04 PM
Apps Unable To Run w/o Admin Rights John Windows XP Security 2 10th Apr 2004 04:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:45 PM.