Jump to content

Update user info in single sign on multitenancy


ketil.holden

Recommended Posts

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 : kho0404ikt

at 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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...