How to use permission codes.