code: public List<CmsGroup> getGroupsOfUser(
          String username,
          boolean directGroupsOnly,
          boolean includeOtherOus,
          String remoteAddress)
      throws CmsException {
  
          return m_securityManager.getGroupsOfUser(
              m_context,
              username,
              (includeOtherOus ? "" : CmsOrganizationalUnit.getParentFqn(username)),
              includeOtherOus,
              false,
              directGroupsOnly,
              remoteAddress);
      }
docs: Returns the groups of a user filtered by the specified IP address.<p>
  
  @param username the name of the user
  @param directGroupsOnly if set only the direct assigned groups will be returned, if not also indirect roles
  @param remoteAddress the IP address to filter the groups in the result list
  @param includeOtherOus if to include groups of other organizational units
  
  @return a list of <code>{@link CmsGroup}</code> objects filtered by the specified IP address
  
  @throws CmsException if operation was not successful