PermissionDeniedException on Java Client

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
jharris
Posts: 1
Joined: Thu Mar 24, 2016 1:17 pm

PermissionDeniedException on Java Client

Post by jharris »

Hi,

I'm trying to set up a java client for the first time by following through the examples in the documentation http://documentation.cyclos.org/4.5/cyc ... 03s02.html

However when I try and call the service (e.g. Page<UserWithFieldsVO> users = userService.search(query);) I get a 500 response with the following exception:

org.cyclos.model.access.PermissionDeniedException
org.cyclos.security.users.UserServiceSecurity.checkQuery(UserServiceSecurity.java:207)

I'm fairly sure this is not a credentials issue, I can make the same call to the server through the Scripting API with the same user credentials that I used when creating the HttpServiceFactory

Completely stumped at this point if anyone can shed light on this.

Post Reply