Forum Discussion

Gursimrat's avatar
Gursimrat
Leader
11 years ago

Permissions in the REST

Hi,

 

We are working on a custom search, where we are feeding all the data from the community to our external SOLR server using /restapi/vc/search/messages?q= , which includes all the private boards, ideas as well because we are making this call as an admin. Now, we are fetching the search results from the external SOLR server on to our community, but what it will do is make all the private data available in the JSON response, which will eventually be displayed in the search results to the normal users, though, on clicking the result, it will show access denied, but is there any way by which we can send the permissions along with the data being feeded to the SOLR server in the first place so we can later put the checks to avoid normal users from seeing the private data?

 

 

  • savy's avatar
    savy
    Contributor

    Hi Gursimrat,

     

    I do not think there is a way to include permission specific data in response. But something specific to the check that you mentioned at the end, this "Solved" post has information about getting permission about a specific user. What I am getting at is that you can get the access level of the user and decide whether to send the data to this user or not.

     

    I hope this helps.

     

    -sAVy