In the Oauth documentation where it states "Here it is very important to login to the email you are trying to configure in the helpdesk. Once logged in as the system email you are trying to configure, you can opt to Consent on behalf of your organization, and then click Accept."
we have usually granted the helpdesk email we're using temporary global admin so it can accept the permissions. However when we remove the temporary global admin permissions our osticket install will being to fail retrieving tickets. If we add global admin back, Osticket begins to work again. We can't have global admin on the helpdesk email as it presents a major security hole. Any help would be appreciated.