If you want to say that someone finds something useful then you use can use either "to" or "for":
"Thanks, this book will be very useful to/for me."
If you want to explain the purpose of something then you must use "for":
"This tool is useful for opening cans."
"useful to" can also be followed by a verb to express a desirable course of action:
"It woul