Page 1 of 1

pmConnector error

Posted: Sat May 18, 2019 1:14 pm
by HeshanKaru1994
/api/1.0/workflow/department/3720151675cda17ec8623c9018653231/assigned-user` resulted in a `400 Bad Request` response:\n{\"error\":{\"code\":400,\"message\":\"Bad Request: The user with \\\"7687140835c5815fe3e6c40046197367\\\" not have permissions to (truncated...)\n"

Re: pmConnector error

Posted: Tue May 21, 2019 12:51 am
by amosbatto
You need to provide more information and right click on the error to copy the entire error message. What are you trying to do?

Re: pmConnector error

Posted: Tue May 21, 2019 6:38 am
by HeshanKaru1994
Hi,
I was using "GET /api/1.0/{workspace}/department/{dep_uid}/assigned-user" REST api to get assigned users of a selected department.And I got an error

`400 Bad Request` response:\n{\"error\":{\"code\":400,\"message\":\"Bad Request: The user with \\\"7687140835c5815fe3e6c40046197367\\\" not have permissions to (truncated...)\n

I was using pmConnector plugin for the purpose and was referring Lab:Processmaker Connectors in university.processmaker course

Re: pmConnector error

Posted: Tue May 21, 2019 10:14 pm
by amosbatto
The user who executes that REST endpoint needs to have the PM_USERS permission in his role. Try executing that endpoint with the "admin" user.