code: func (api OrganizationsAPI) UserIsMember(w http.ResponseWriter, r *http.Request) {
  	globalID := mux.Vars(r)["globalid"]
  	username := mux.Vars(r)["username"]
  
  	var isMember bool
  
  	user, err := SearchUser(r, username)
  	if db.IsNotFound(err) {
  		user = nil
  	} else if handleServerError(w, "getting user from database", err) {
  		return
  	}
  
  	if user != nil {
  		orgMgr := organization.NewManager(r)
  		inOrgs, err := orgMgr.IsInOrgs(username, globalID)
  		if handleServerError(w, "checking if user is in organization", err) {
  			return
  		}
  		isMember = len(inOrgs) > 0 && inOrgs[0] == globalID
  	}
  
  	response := struct {
  		IsMember bool
  	}{
  		IsMember: isMember,
  	}
  	w.WriteHeader(http.StatusOK)
  	w.Header().Set("Content-Type", "application/json")
  	json.NewEncoder(w).Encode(&response)
  }
docs: // UserIsMember is the handler for GET /organization/{globalid}/users/ismember/{username}
  // Checks if the user has membership rights on the organization