CmdID / PowerShell / Cmdlets / Test
Test-ApplicationAccessPolicy
Use the Test-ApplicationAccessPolicy cmdlet to test access right of an application to a specific user/mailbox. Exchange PowerShell reference
From the Exchange PowerShell reference 2 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the recipient to test.-AppIdThe Identity parameter specifies the GUID of the app that you want to test.