You are getting this error because of Application permissions. As per the documentation, Application permissions are only supported for migration.
Otherwise, this API does not support Application permissions.
In case: your team is not in migration you need to use delegated permissions and I have tried this Graph API using delegated permissions, its working as expected. Please refer to the below sample screenshot
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.