code: public List<CmsUser> getUsersOfRole(
          CmsObject cms,
          CmsRole role,
          boolean includeOtherOuUsers,
          boolean directUsersOnly)
      throws CmsException {
  
          return m_securityManager.getUsersOfGroup(
              cms.getRequestContext(),
              role.getGroupName(),
              includeOtherOuUsers,
              directUsersOnly,
              true);
      }
docs: Returns all direct users of a given role, in the given organizational unit.<p>
  
  Users that are "indirectly" in the role are not returned in the result.<p>
  
  @param cms the opencms context
  @param role the role to get all users for
  @param includeOtherOuUsers include users of other organizational units
  @param directUsersOnly if set only the direct assigned users will be returned,
  if not also indirect users, ie. members of child groups
  
  @return all <code>{@link org.opencms.file.CmsUser}</code> objects in the group
  
  @throws CmsException if operation was not successful