Forum Discussion

joy_lim's avatar
joy_lim
Helper
6 years ago

admin user cannot query all data

I have an administrator role but I cannot query all user's subscriptions, when using this  LiQL, select * from subscriptions. How come?

    • joy_lim's avatar
      joy_lim
      Helper

      VikasB, I think I need to rephrase my question.... 

      My Goal: Find all users subscribed to a message

      My Authorization: My user has an admin role.

      What I did: 

      * updated subscription settings to make myself automatically subscribed whenever I post or reply to a message

      * created message id: 744

      * invoked this: 

      curl -X GET \
      https://<hostname>/restapi/vc/messages/id/744/subscriptions/global/type/email \
      -H 'li-api-session-key:liApiSessionKeyFromSessionLogin'

       

      ** I also tried other types, bookmark and float

      * and got this as a response (for each of the types):

      <response status="success">
        <subscription type="subscription" null="true"/>
      </response>

       

      So the question is:

      Why doesn't the REST service below show any users subscribed to the message even my notification settings is configured to "Notify me when I post, reply, submit a review, or comment?"

      /vc/messages/id/<messageId>/subscriptions/global/type/(email|bookmark|float)