Steps to switch IMAP or POP3 to OAuth2 Capture Job
1 - Upgrade Content Central to the latest version where OAuth2 is supported in Capture Job.
2 - Provide the OAuth2 requirements from Azure:
Directory Id
Applciation Id
Client Secret
Username (emaill address being monitored)

Refer from
3 - Reconfigure Capture Job in Content Central to use "OAuth2" requirements provided in the "OAuth2" Capture Job.
Directory Id
Applciation Id
Client Secret
Username: (emaill address being monitored)
IF originally IMAP: UNCHECK "Delete message after capturing".
IF originally POP3: CHECK "Delete message after capturing".