Programmatically check whether Agent Grant Authorisation is Done or Due