How do I set a user's tenantId?

Hi,

I created a user through flowable-idm but the application never asked for a tenant id. How do I set the tenant a user belongs to?

Thanks

Hi Diegonc,

One possibility is to set tenantId when user is created/updated:
org.flowable.engine.test.api.identity.IdentityServiceTest#testUpdateUser

        User user = identityService.newUser("johndoe");
        user.setFirstName("John");
        user.setLastName("Doe");
        user.setEmail("johndoe@alfresco.com");
        user.setTenantId("originalTenantId");
        identityService.saveUser(user);

Regards
Martin