Forum Discussion

tkeanini's avatar
tkeanini
Contributor
13 years ago

permissions to read the The Metrics object via the API?

 

With an administrative account, I login and GET the appropriate URL but I get an error:

 

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<response status="error">
  <error code="303">
    <message>UserRef[id=-1] does not have access to RequiredPermissions[(allow_restapi_call_read)] on CommunityByDisplayIdRef[nodeType=StandardNodeType[nodeType=lithium.coreapi.community.ICommunity,entityTypeKey=EntityTypeKey[community],entityTypeUid=4,hashCode=607570306],displayId=mycompany]</message>
  </error>
</response>

 

What permissions are required to get this metrics object for the spedified userID? --tk

1 Reply

  • AdamN's avatar
    AdamN
    Khoros Oracle
    13 years ago

    Hi tkeanini,

     

    The response you're getting suggests that the API is seeing you as an anonymous user (UserRef[id=-1]), rather than an admin user.

     

    How are you attempting to make this call? Are you doing it directly in your browser, or some client-side code you've written, or some kind of server-to-server call via some code?

     

    Have you attempted to authenticate to the REST API? If so, are you passing the session key into the subsequent calls?