def _grant_sql_builder(self, permission, user=None, group=None):
        if not atleast_one(user, group):
            raise ValueError('Atleast one of user / group needed')

        result = list()
        option_string = 'WITH GRANT OPTION'
        base = 'GRANT %s ON %s TO {user} {option}' % (
            permission, self.full_name)

        if user is not None:
            result.append(base.format(user=user, option=option_string))

        if group is not None:
            result.append(base.format(user='GROUP %s' % group, option=''))
        return result
Return the sql string for granting permissions
dataset/ETHPy150Open coursera/dataduct/dataduct/database/relation.py/Relation._grant_sql_builder