I've just read this post on another forum, it's from someone who works in a prison library, most of the replies are saying that it's ok to secretly sell this book and donate the cash to a trans charity to spite JK Rowling.
"Say if you work somewhere that sometimes gets items donated (not a charity) and you discover that one might possibly be worth a bit of money (hundreds, not thousands), however you have no way of finding out who originally donated it. Is it OK to sell said item and donate the money to a relevant charity?
I'm fortunate enough not to really need the money myself, although I have to admit I'm still tempted to keep some, I'm not the most morally watertight person.... it's a first edition Harry Potter book with apparently rare typos"
Even setting the JKR/trans thing to one side I think this is very dishonest and she shouldn't do it, most others are encouraging her to go ahead.
So, is it ok to sell something that doesn't belong to you as long as you give the proceeds to charity?
AIBU - Don't do it, the book isn't yours to sell
YANBU - Do it and hope nobody at work finds out