Cloud App Security supports using OAuth 2.0 to provision a service account (Authorized Account) for SharePoint Online. With the OAuth 2.0 framework, Cloud App Security uses an access token to obtain limited access on the Global Administrator's behalf to run advanced threat protection and data loss prevention scanning on files in the protected SharePoint sites of your organization.
If you have also provisioned a Microsoft Teams (Teams) service account, when the SharePoint site and the team corresponding to a file are selected as a policy target respectively, Cloud App Security applies policies for Microsoft Teams (Teams) to this site unless the site does not hit any policy for Microsoft Teams.The steps outlined below detail how to provision an Authorized Account for SharePoint Online from Dashboard.
If for some reason the access token becomes invalid, go to Service Account.
to create a new access token for the service account. For more information, see