ketil.holden Posted June 26, 2014 Share Posted June 26, 2014 Platform is jasperserver 5.1 Enterprise. I've looked at MTUserAuthorityServiceImpl and UserAuthorityServiceImpl and the updateUser method is from the latter. It does not take tenant into account, an hence when I try to call: ((MTUserAuthorityService)getUserAuthorityService()).updateUser(exCtx, userName, user);it does not find what MTUserAuthorityServiceImpl has already loaded with getUser:java.lang.IllegalArgumentException: Cannot find user with name : kho0404iktat com.jaspersoft.jasperserver.api.metadata.user.service.impl.UserAuthorityServiceImpl.updateUser(UserAuthorityServiceImpl.java:1696) I thought I could make it by way of a little hack by using updateTenantForUser since it also saves the user, but the changes were not persisted for some reason. I have changed e-mail and name. Is there a way to do this by the official API? If not how would you recommend to proceed? My plan would perhaps be to subclass MTUserAuthorityServiceImpl and add the "missing" method. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now