Hello I am trying to query the /api/v2.0/companies endpoint, i get a proper response when using the CRONUK/CRONUS test accounts, when i choose my real company, i keep getting (i added the xxxx in the url to hide my environment) :
Client error: `GET https://api.businesscentral.dynamics.com/xxxxxxxxxxxxxxxx/api/v2.0/companies` resulted in a `401 Unauthorized` response:
{"error":{"code":"Authentication_InvalidCredentials","message":"Web service call failed because user could not be authen (truncated...)
I get an access token and a refresh token fine. Infact all other companies that i have tested with works fine, but not the production one where i am trying with a non admin user. Can anyone please advise where i can give selective permission so as that user can also be able to query this companies endpoint? I do also have an admin account it works with the admin account, but i wanted to grant selective permission to just a specific user to be able to choose which company id to work with, I can't seem to find this in a documentation or the UI of business central.