helper methods to generate grant permission url