How to use permissions