Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Data access restriction Post Reply Post New Topic
Author Message
mviswanathan
Newbie
Newbie
Avatar

Joined: 29 Oct 2008
Location: India
Online Status: Offline
Posts: 15
Quote mviswanathan Replybullet Topic: Data access restriction
     Posted: 04 Nov 2008 at 6:31am
Hi,
 
How to achieve row level data restriction in crystal reports based on the user log-on?
 
Pls. let me know if there is any..
 
Thanks
Viswa
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 07 Nov 2008 at 6:48am
Crystal is a reporting tool, it only reads data.  It doesn't care about security, because that is a logical contruct, not data. 
 
If you use a stored proc, you can have your logic in there.  If you don't use stored procs, then you would need all of the logic in your filter criteria for the report.  You will need to include all of the data so that Crystal has enough info to filter out data the user shouldn't see, since Crystal can only ask for data once.  I you use an application, the user info will be known and you can pass it along, especially in a stored proc.  If you are using Crystal stand alone, you will need to ask the user for their userid...and they can lie.  I imagine you could ask for the password as well, but depending on how that is stored/accessed Crystal may not be able to determine if a user is who they say they are.
 
In short, Crystal doesn't care about security...it is a programmatically decided issue, not data.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum