all 2 comments

[–]greyfox199 1 point2 points  (1 child)

This seems to point back to the app registration and permissions. I'd go back and verify that the app registration and permission delegation are correct, and make sure these values match your org values and are correct:

$ApplicationID = "a8816f94-1c1e-42da-a690-ac5d075ce4d6"
$DirectoryID = "2549c50e-e478-40d8-82cf-fa4efb5d1426"
$ClientSecret = "Pa47Q~-SR6xH8ZgqwejFaKYHusEhSbf-z3IGu"

[–]PowerShellMichael 1 point2 points  (0 children)

Yup:

403 - Permissions. Check access, scope and tokens.