Hi @Tomek Jagodowski ,
As per this Microsoft Documentation, we need to identify the app’s application (client) ID in the Azure app registration portal
and place it in this command: New-CsApplicationAccessPolicy -Identity newApp-policy -AppIds "{application (client) ID}"
. In the next step we need to Identify the user's user (object) ID in the Azure user management portal and then use this command: Grant-CsApplicationAccessPolicy -PolicyName newApp-policy -Identity "{object ID}"
For validating application access policy you can run this command Get-CsApplicationAccessPolicy
to check if the policy created successfully or not.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.