Back to Blog
One note website6/14/2023 ![]() Remember, my goal is simply to list the One Notes in my company's SharePoint. Some progress thanks to this stack exchange post I changed my $scope from $scope = "" to simply $scope = "" and I can now return a valid token. You might have sent your authentication request to the wrong tenant. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. => AADSTS500011: The resource principal named was not found in the tenant named. "/.default",// Here I append the /.default suffix because this is app accessĬurl_setopt($ch, CURLOPT_HTTPHEADER, $headers) Ĭurl_setopt($ch, CURLOPT_POSTFIELDS, $body) Ĭurl_setopt($ch, CURLOPT_RETURNTRANSFER, true) I'm going to past the entirety of my script to see if I am missing something obvious. I have verified my $tenant ID is correct, as well as $appId and $appSecret. ![]() Here is how I have configured the application permissions in the app's API permissions: I have granted permissions to my app in the Azure application registration, so I don't understand why I am seeing this error, and can't seem to work past it. ![]() I am trying to write a simple script to connect and list all of the OneNote notebooks in my company's SharePoint, however I am being met with the error message: AADSTS500011: The resource principal named was not found in the tenant named. ![]()
0 Comments
Read More
Leave a Reply. |