#创建用户
IdentityService is = ar.getIdentityService();
User user = is.newUser(username);
user.setFirstName("king");
user.setLastName("kong");
user.setEmail(username+"@gamil.com");
user.setPassword("123456");
is.saveUser(user);
act_id_user
#修改用户
User userInDb = is.createUserQuery().userId(username).singleResult();
if(userInDb!=null) {
userInDb.setPassword("1234567");
is.saveUser(userInDb);
}
# 删除用户
is.deleteUser(username);