I used the following request body as form value with header application/x-www-form-urlencoded.
"Grant_type": "client_credentials",
"Client_id": "<client_id>",
"client_secret": "<client_secret>",
"Resource": "00001111-aaaa-2222-bbbb-3333cccc4444"
And I am getting the following error.
{
"error": "invalid_resource",
"error_description": "AADSTS500011: The resource principal named 00001111-aaaa-2222-bbbb-3333cccc4444 was not found in the tenant named AppsCode Inc.. 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. You might have sent your authentication request to the wrong tenant. Trace ID: a44ac10b-2e2f-4b3d-b953-7abc54eb0c00 Correlation ID: 36b0dcac-393a-4f16-8363-2285cf66ec12 Timestamp: 2024-10-25 12:48:53Z",
"error_codes": [
500011
],
"timestamp": "2024-10-25 12:48:53Z",
"trace_id": "a44ac10b-2e2f-4b3d-b953-7abc54eb0c00",
"correlation_id": "36b0dcac-393a-4f16-8363-2285cf66ec12",
"error_uri": "https://login.microsoftonline.com/error?code=500011"
}
我认为,我们已经为市场报价中使用的应用程序配置了必要的权限。谁能提供有关我们目前可能缺少或错误配置的内容的任何见解?
昨天也是同一问题。发现英语文档中给出的“资源” ID简直是错误的。例如,德语翻译(20e940b3-4c77-4b0b-9a53-9e16a1b010a7
)中给出的那个为我工作。