I am new to Business Central and I have an API that needs to consume Business Central API.
I have setup the application in Azure AD and also setup the created app in Azure in Business central.
However, whenever I am invoking an API in BC using the token I receive from "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token" endpoint I am getting an error.
I am not sure what permission I need to assign to the registered application. I have assigned Admin, Full access and Super but no luck.
Error:
{
"error": {
"code": "Internal_ServerError",
"message": "You do not have the following permissions on Page APIV1 - Customers: Execute.\r\n\r\nTo view details about your permissions, see the Effective Permissions page. To report a problem, refer to the following server session ID: '295'. CorrelationId: 81c53d83-6843-4da9-8251-2f1980ef2ad4."
}
}