Jump to content

bhen

Members
  • Posts

    2
  • Joined

  • Last visited

bhen's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Does anyone know how to add a profile attribute for a tenant using an api call? I'm currently using the code below which works fine when I don't specifty a tenantID but when I do an exception is thrown saying "This implementation does not support tenants". Is there another implementation? Code: jsUser = userAuthorityService.newUser( JasperServerUtil.getExecutionContext() ); jsUser.setUsername("john"); jsUser.setTenantId("myNewOrg"); jsUser.setFullName("john doe"); jsUser.setEnabled(true); jsUser.setExternallyDefined(false); userAuthorityService.putUser(JasperServerUtil.getExecutionContext(), jsUser); ProfileAttribute attr = profileAttributeService.newProfileAttribute( JasperServerUtil.getExecutionContext() ); attr.setPrincipal( jsUser ); attr.setAttrName( "PlayerName" ); attr.setAttrValue( "Kuyt" ); profileAttributeService.putProfileAttribute( JasperServerUtil.getExecutionContext(), attr );
  2. Code: Post Edited by bhen at 01/27/2011 16:26 Post Edited by bhen at 01/28/2011 15:06
×
×
  • Create New...