Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/18/2023 02:27 AM
I'm trying to run a UserImportJob from postman but getting 500 internal server error, which means there's an error internally in Saviynt.
Does saviynt not support running these types of Jobs from API? I can run wsretry and many other jobs but not this one:
URL: {{url}}/ECM/{{path}}/runJobTrigger
METHOD: POST
Body
{
"jobgroup": "DATA",
"jobname": "UserImportJob",
"triggername": "SaviyntManaged_SAV4SAV_UserImport",
"createJobIfDoesNotExist": "false",
"valueMap": {
"connectiontype": "REST",
"connectionname": "SaviyntManaged_UserImport_SAV4SAV",
"connectionid": "48",
"fullorincremental": "full",
"userNotInFeedAction": "NOACTION",
"userOperationsAllowed": "UPDATE",
"zeroDayProvisioning": "false",
"generateSystemUsername": "false",
"generateEmail": "false",
"checkRules": "true",
"passwordExpired": "0",
"buildUserMap": "true",
"importsavconnect": "false",
"exporttosavcloud": "false",
"userDefaultSavRole": "ROLE_SAV_ENDUSER",
"userReconcillationField": "username"
}
}
Is there something wrong with my call?
10/19/2023 10:46 AM
Hi @yogesh ,
Greetings.
Did you just try with mandatory parameters ??
Also can you let us know what is the behavior when the job is run from UI job control panel ?
Thanks,
10/19/2023 12:22 PM
Thanks for your reply pruthvi
I followed this document:
It doesn't state what parameters are mandatory and what are optional, not does it state what the values are supposed to be for enumerated parameters. I prepared this call by rummaging through the saviynt logs and the qrtz_triggers table.
When running the trigger from UI the job just works fine. All the parameters have been specified in saviynt UI and saved in the trigger in job control panel. The values I'm using are the same that I found in the qrtz_triggers table.
I even tried calling the api without the valuemap hoping it would run the trigger with the values specified in saviynt job control panel but that doesn't work either.
This should be documented straight forward in the docs but isn't unfortunately. I have given a feedback on the docs above but I know it would take some time to get updated hence I was checking here on forums.
10/25/2023 07:11 PM
10/25/2023 01:41 PM
@yogesh ,
Below is our Postman API documentation and it has details about the APIs, their mandatory and optional parameters etc.,
https://documenter.getpostman.com/view/23973797/2s9XxwutWR#b5945df7-71a6-4682-9d36-3c5c4ecc02f0
Thanks,