I am trying to pull the list of employees via the ...
# integrations
o
I am trying to pull the list of employees via the API I am using -
record/v1/employee
And getting this error message:
{
"type": "<https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1>",
"title": "Bad Request",
"status": 400,
"o:errorDetails": [
{
"detail": "Your current role does not have permission to perform this action.",
"o:errorCode": "USER_ERROR"
}
]
}
in the role i am having permissions: lists > employee records + employees - level full what else is missing?
m
Lists > Employee Record Lists > Employees
o
Yes i already add those as full
m
Have you logged in with that Role and verified outside of the API? I would log in with the role and check the Employees page and see what is being displayed for it.
o
Yes in the UI i can enter to the Employees page
^^ says... Prerequisites: You must enable the Advanced Employee Permissions feature, the Employee Record, the Perform Search, the SuiteAnalytics Workbook, and SuiteScript before you can use this record through REST web services.
o
Thx, i couldn't find: SuiteAnalytics Workbook but SuiteAnalytics Connect. also i couldn't find: Advanced Employee Permissions
m
Reports > SuiteAnalytics Workbook
I've never heard of Advanced Employee Permissions, but I found something online that says "The Advanced Employee Permissions feature is available only for accounts with SuitePeople HR provisioned."
Maybe better to generate a Saved Search of all employees and utilize that for your script?
I am not sure...
o
Yes, i also thought about that
Thank you