Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: How to prevent one user to see other users' data using data source

  1. #1
    Join Date
    Jul 2011
    Posts
    4

    Thumbs up How to prevent one user to see other users' data using data source

    Hi,

    Please consider following case.

    - I've BI server 3.7 CE stable version
    - There is one table say 'UserInfo', having User information with user id as primary key.
    - All user,existing in 'UserInfo' table have access to create Data Source
    - Please provide steps so that one user can not see other users' data i.e. how can I use user id implicitly in Data Source so that user will be restricted to only his data.

    -Thanks in advance,
    Saurabh
    Saurabh

  2. #2
    Join Date
    Jul 2011
    Posts
    2

    Default

    You will need to record the UserName when the record is created and this can be done using some code and recording it in the table along with the users record.

    When the users want to view their records I use a form which uses the code to put the UserName in a hidden text box and then I use a sub form and query to filter the records to only show the records that user created.

    To allow a supervisor to view all records I would create a different form with a query and subform that will show all records if the logged on user is a supervisor.

    Security is very high using this method as you are using the network logon to verify the users identity. This assumes of course that you have prevented users from accessing the database window and design view.

    For added security I also add a timestamp field to record the user and time of any changes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.