anchor.diff:      not_found.
   
   % FIXME: do we want to distinguish between client not found and org not found?
  --spec fetch_user_or_client_cert(couchbeam_server(), db_key(), db_key()) ->
  +-spec fetch_user_or_client_cert(couchbeam:server(), db_key(), db_key()) ->
       [tuple()] | not_found.
   fetch_user_or_client_cert(Server, OrgName, ClientName)
     when is_binary(OrgName), is_binary(ClientName) ->
  
positive.code:      couchbeam_view:fold(View, DocCollector).
  
  
  -spec fetch_auth_join(couchbeam_server(), db_key()) -> [tuple()]
                                                      | {not_found, term()}.
  fetch_auth_join(Server, ObjectId) when is_binary(ObjectId) ->
      {ok, Db} = couchbeam:open_db(Server, ?auth_join_db, []),
  
negative.code: fetch_orgs_for_user(Server, User) when is_list(User) ->
      fetch_orgs_for_user(Server, list_to_binary(User)).
  
  -spec fetch_all_users(couchbeam:server()) -> [term()] | {error, term()}.
  % Return a list of all user documents
  fetch_all_users(Server) ->
      {ok, Db} = couchbeam:open_db(Server, ?user_db, []),
  