def METHOD_NAME(term: JSON, user: Optional[str], access: Optional[str]) -> JSON:
    """
    Create full Elasticsearch user/access query terms from the user and
    access parameters.
    Args:
        term: The basic Elasticsearch query
        user: specified to create an "authorization.user" term
        access: speified to create an "authorization.access" term
    Returns:
        Full expected JSON query "filter"
    """
    filter = [term]
    if access:
        filter.append({"term": {"authorization.access": access}})
    if user:
        filter.append({"term": {"authorization.owner": user}})
    return filter