Step 3: Test the Application Access Policy
Utilize the following script to test the application access policy:
Verify that you have added at least one user to the mail-enabled security group
Test-ApplicationAccessPolicy -Identity user1@contoso.com -AppId6135b4c8-8900-475f-84db-b8ee65fbb329