Skip to main content
Solved

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

  • December 21, 2023
  • 3 replies
  • 126 views

Forum|alt.badge.img+1

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

Best answer by Vignesh Ponnusamy

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,

3 replies

Forum|alt.badge.img+1
  • Author
  • Varsity I
  • December 21, 2023

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

Thank you


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

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,


Forum|alt.badge.img+1
  • Author
  • Varsity I
  • December 21, 2023

That was it. Thank you very much!!