CmdID / PowerShell / Cmdlets / Test
Test-ServicePrincipalAuthorization
Use the Test-ServicePrincipalAuthorization cmdlet to test the access granted by role-based access control (RBAC) for Applications. Exchange PowerShell reference
From the Exchange PowerShell reference 4 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the service principal that you want to test.-Confirm, -cfThis parameter is reserved for internal Microsoft use.-ResourceThe Resource parameter specifies the target mailbox where the scoped permissions apply.-WhatIf, -wiThis parameter is reserved for internal Microsoft use.