Read all records table private

Thread is closed for posting
3 posts, 1 answers
  1. Ignacio
    Ignacio avatar
    21 posts
    Member since:
    Feb 2013

    Posted 28 Feb 2017 Link to this post

    Hello,

    How can I read/get data from all records on a table with permissions type private ?
    Whith the api-key I can get only the one user records.

    Thanks.

  2. Answer
    Martin
    Admin
    Martin avatar
    104 posts

    Posted 02 Mar 2017 Link to this post

    Hi Ignacio,

    When the content type permissions are set to "private" only the items owner (the user who created them) will be able to read the items. You may change the content type permissions to "shared" for example or "Role-Based" so that other users can read the data items (but not update or delete them).

    If you need to stick to permissions "private" you may override the restriction by using your master key to execute operations using the JavaScript SDK or make HTTP requests using the REST API.

    Please note the master key should never be used client-side (in the app), nor should it be disclosed to third parties even in a human-unreadable form. You may safely use it inside Telerik Platform Cloud Code or to execute requests from your own server as thus only you will have access to the master key.

    Let me know if this has helped.

    Regards,
    Martin
    Telerik by Progress
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
  3. Ignacio
    Ignacio avatar
    21 posts
    Member since:
    Feb 2013

    Posted 03 Mar 2017 in reply to Martin Link to this post

    Solved.

    Thank you !!!

Back to Top