format grants in external format
handle deleted permissions when listing grants