Hello Marko Uljarevic,
Thank you for reaching out to Microsoft Support!
I ran tests for your problem, and the results were the same as yours, with errors when principalId
only was used.
And other users have raised similar issues recently, so this may be a recent Graph API issue.
To this I suggest you open a support ticket with Microsoft Support to get help from the API owner.
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.