title: CQ user is not getting added into group using Java in AEM 6.2
body: <p>I am trying to add a cq user in AEM a group. I using below code. Code running successfully but the user is not getting added into the group. Can you please see where I am doing a mistake?</p>
  
  <pre><code> ResourceResolver resourceResolver = request.getResourceResolver();
                UserManager userManager = resourceResolver.adaptTo(UserManager.class);
              try {
                  Authorizable authGroup= userManager.getAuthorizable("administrators");
                  LOGGER.info("authorizable"+authGroup.toString());
  
                  Group group = (Group) authGroup;
                  Authorizable authUser = userManager.getAuthorizable("myuser");
                  LOGGER.info("Before Groufp"+authUser.toString());
                  boolean b=group.addMember(authUser);
                  LOGGER.info("After Group"+authUser.toString());
                  if(b){
                      LOGGER.info("success");
                  }
                  else{
                      LOGGER.info("failure");
                  }
  
  
              } catch (RepositoryException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
  </code></pre>