and more in a single search tool across platforms. Read the announcement here. |
03/05/2024 03:36 AM - edited 03/05/2024 06:35 AM
Hi Team,
When below URL is called from SIGA RESTConnector Disable Account JSON, SIGA fails to resolves the users values in HttpParams , it transfers the the values as it is in the expression form to target.
As shown in the below logs:
2024-02-23/15:30:03.613 [{}] [quartzScheduler_Worker-2] DEBUG rest.RestProvisioningService - Calling Webservice Url - https://testurl/test31@pmintl.dev/status?username=sprinklrtest31@test.dev&email=sprinklrtest31@pmint... with httpParams - [mainIMDLAccount:${user.customproperty4}, azureCorporateADAccountName:${user.customproperty49}, azureIQOSAccountName:${user.customproperty50}, azureIQOSAccountId:${user.customproperty52}, domainAccount:${user.customproperty60}, employeeId:${user.employeeid}, endDate:${if (user.enddate!=null) {Calendar today=Calendar.getInstance();today.setTime(user.enddate);today.getTime().format("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")} else {null}}, firstName:${user.firstname}, lastName:${user.lastname}, status:${user.statuskey=******?'':user.statuskey=******?'active':user.statuskey=******?'inactive':''}, initials:${user.customproperty7}, isActive:${user.enabled}, groupId:${entitlementValue.id}, groupName:${entitlementValue.entitlement_value}]
The above LHS values in httpParams, are being sent in expression format from SIGA instead of resolving to value.
firstName:${user.firstname}, --> it should send value for firstName not expression.
could you please help in why this JSON is not resolving expressions?
Below are the details of disableAccountJSON configured:
{
"accountIdPath": "accountName",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"showResponse": true,
"url": "https://testurl/status?username=${user?.customproperty61+'@test.net'}&email=${user?.customproperty61+'@test.net'}&employeeId=${user?.employeeid}&mainIMDLAccount=${u...}",
"httpMethod": "PATCH",
"httpParams": "{\"mainIMDLAccount\":\"${user.customproperty4}\",\"azureCorporateADAccountName\":\"${user.customproperty49}\",\"azureIQOSAccountName\":\"${user.customproperty50}\",\"azureIQOSAccountId\":\"${user.customproperty52}\",\"domainAccount\":\"${user.customproperty60}\",\"employeeId\":\"${user.employeeid}\",\"endDate\":\"${if (user.enddate!=null) {Calendar today=Calendar.getInstance();today.setTime(user.enddate);today.getTime().format(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")} else {null}}\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"status\":\"${user.statuskey==null?'':user.statuskey==1?'active':user.statuskey==0?'inactive':''}\",\"initials\":\"${user.customproperty7}\",\"isActive\":${user.enabled},\"groupId\":\"${entitlementValue.id}\",\"groupName\":\"${entitlementValue.entitlement_value}\"}",
"httpHeaders":
{
"client_id": "test",
"client_secret": "test",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
204,
201,
202,
203,
205
]
},
"unsuccessResponses":
{
"statusCode":
[
400,
404
]
}
}
]
}
03/05/2024 05:31 AM
@vinitamulchanda can you try the below JSON?
{
"accountIdPath": "accountName",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"showResponse": true,
"url": "https://testurl/status?username=${user?.customproperty61+'@pmintl.net'}&email=${user?.customproperty...}",
"httpMethod": "PATCH",
"httpParams": "{\"mainIMDLAccount\":\"${user.customproperty4}\",\"azureCorporateADAccountName\":\"${user.customproperty49}\",\"azureIQOSAccountName\":\"${user.customproperty50}\",\"azureIQOSAccountId\":\"${user.customproperty52}\",\"domainAccount\":\"${user.customproperty60}\",\"employeeId\":\"${user.employeeid}\",\"endDate\":\"${if (user.enddate!=null) {Calendar today=Calendar.getInstance();today.setTime(user.enddate);today.getTime().format(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")} else {null}}\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"status\":\"${user.statuskey==null?'':user.statuskey==1?'active':user.statuskey==0?'inactive':''}\",\"initials\":\"${user.customproperty7}\",\"isActive\":\"${user.enabled}\",\"groupId\":\"${entitlementValue.id}\",\"groupName\":\"${entitlementValue.entitlement_value}\"}",
"httpHeaders": {
"client_id": "test",
"client_secret": "test",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
204,
201,
202,
203,
205
]
},
"unsuccessResponses": {
"statusCode": [
400,
404
]
}
}
]
}
03/05/2024 06:09 AM - edited 03/05/2024 06:37 AM
no luck 😞 it is still the same:
2024-03-05/14:31:19.819 [{}] [quartzScheduler_Worker-9] DEBUG rest.RestProvisioningService - Calling Webservice Url - https://testurl/status?username=test51@test.dev&email=test51@test.dev&employeeId=50400543&mainIMDLAc... with httpParams - [mainIMDLAccount:${user.customproperty4}, azureCorporateADAccountName:${user.customproperty49}, azureIQOSAccountName:${user.customproperty50}, azureIQOSAccountId:${user.customproperty52}, domainAccount:${user.customproperty60}, employeeId:${user.employeeid}, endDate:${if (user.enddate!=null) {Calendar today=Calendar.getInstance();today.setTime(user.enddate);today.getTime().format("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")} else {null}}, firstName:${user.firstname}, lastName:${user.lastname}, status:${user.statuskey=******?'':user.statuskey=******?'active':user.statuskey=******?'inactive':''}, initials:${user.customproperty7}, isActive:${user.enabled}, groupId:${entitlementValue.id}, groupName:${entitlementValue.entitlement_value}]
2024-03-05/14:31:19.819 [{}] [quartzScheduler_Worker-9] DEBUG services.HttpClientUtilityService - calling executeRequestWithTimeoutConfig for api...