Solved

"exceptionMessage": "Current user cannot send API requests.",

  • 21 December 2023
  • 3 replies
  • 45 views

Userlevel 2
Badge

Hello all,

 

Just got our cloud instance up and a Second tenant  called “Demo Data Sandbox Tenant”

Trying to Auth with the rest API and I get a 500 error “

    "message": "An error has occurred.",

    "exceptionMessage": "Current user cannot send API requests.",

    "exceptionType": "PX.Data.PXException",”

 

I am using this in my body

{
"name" : "*************",
"password" : "*****************",
"tenant": "Demo Data Sandbox Tenant",
"branch": ""
}

 

and URL is https://***********.acumatica.com/entity/auth/login

I have a local instance that I have been using for the API with no issues. Is there something I am missing for Multi Tennant?  User is an admin. Can log into the GUI no problem.

 

Thank you

icon

Best answer by Vignesh Ponnusamy 21 December 2023, 20:20

View original

3 replies

Userlevel 2
Badge

All, issue was with that user. I created a Service account an all is working fine.

Thank you

Userlevel 7
Badge +4

Hi @keithschm,

I would suggest you check the User Type set for that specific user and then check if that user type allows API Login. 

Below are the screenshot of the setting you can check,

Screen: User(SM201010)

 

Screen: User Types(EP202500)

Hope that helps.! Good Luck,

Userlevel 2
Badge

That was it. Thank you very much!!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved