Forum Discussion

tsrisudh's avatar
tsrisudh
Advisor
7 years ago

Get roles per message

Is there any API which tells me what are the roles which have read access to a particular message (Discussion, blog, tkb, idea)

We are trying to implement a custom search and for this we need to know which roles have read access to which content.

    • tsrisudh's avatar
      tsrisudh
      Advisor

      This will not work for us as we need the data for our federated search, we need to know if the roles associated with each category/board have read permissions or not, if yes what read permissions are allowed.

      Is creating an idea the only option left?

      • luk's avatar
        luk
        Boss

        tsrisudh How do you query the API, e.g. with what Role/Authentication? If the API user was properly authenticated (do not use restadmin() for everything or an Admin Role for the API user!) you would not have to check for permissions, you would just get back what you can read, no?