Developer Forum »
Odata access violation. Only system user should have access
62 posts

Hi!

I have created a simple search based on odata (in JSON format), and it is only used within a custom Webnodes-module. 

I tried to set access in this way: system --> settings --> odata --> read access --> system user. 

In the ontology module, I have checked "Read access" in the settings-tab for the class I want to expose.

When I now try to run the odata-query, I get the error 
Authenticated user with id -10 is not a member of the OData read access group.

1. What is the Odata read access group? Is this a group the system user should be a member of?

2. Do I have to enter a value for "Read group id" for all the properties I want to expose as well?

120 posts

You need to autenticate the request. This can wither be done by addeing the username and password in the URL or the header of the JSON request. Why are you accessing the OData endpoint from a module? Is it not easier to access the API natively?

1