@Sivakarthikeyan K
Thank you for providing more information about the error code 65002. This error occurs when a developer in your tenant is attempting to reuse an App ID owned by Microsoft, which prevents them from impersonating a Microsoft application to call other APIs. To solve this issue, the developer must move to another app ID they register in portal.azure.com.
Here are the steps to solve this issue:
- To register a new app ID in portal.azure.com, follow these steps:
- Sign into the Azure portal.
- Navigate to Azure Active Directory.
- Select App registrations and then select New registration1234.
- Enter a name for the new app ID and select the appropriate account types12.
- Under Redirect URI, select Web and enter the appropriate URL1.
- Select Register to complete the registration process1.
- To update the application code to use the new app ID, the developer should replace the old app ID with the new one in the application code.
- To configure the new app ID to access the required APIs, follow these steps:
- Navigate to the API management page in the Azure portal.
- Select the API that the app ID needs to access.
- Under Access control (IAM), select Add and then select Add role assignment.
- Select the appropriate role and then select the new app ID as the assignee1.
- Under Access control (IAM), select Add and then select Add role assignment.
- Select the API that the app ID needs to access.
- Navigate to the API management page in the Azure portal.
- To test the application to ensure it is working properly with the new app ID, the developer should run the application and verify that it is able to access the required APIs without any errors.
More reading: https://learn.microsoft.com/en-us/azure/active-directory/develop/reference-error-codes