to have the obligation to
We all have the obligation to respect the rules.
—Should I let them know? —Yes, you have the obligation to do so.
The government has the obligation to protect its citizens.