and more in a single search tool across platforms. Read the announcement here. |
10/31/2023 12:57 AM
Hi Team,
We are trying to integrate the rest of the application, which uses authentication by providing an API key and tenant ID in the header of the request and not using any authorization header.
I referred to a few posts and created the connection JSON and Create Account JSON as below.
However, while provisioning, Saviynt is giving the below error: "Access token is null".
Connection JSON
{
"authentications": {
"acctAuth": {
"httpHeaders": {
"Content-Type": "application/json",
"x-api-key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"x-tenant-id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5
}
}
}
Create Account JSON
{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"call": [
{
"name": "call1",
"connection": "userAuth",
"url": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"httpMethod": "PATCH",
"httpParams": "{\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"email\":\"${user.email}\",\"expiresAt\":\"2006-10-25 14:51:38\",\"customFields\": [{\"id\":\"emp-number\",\"value\":\"${user.employeeid}\"},{\"id\":\"emp-type\",\"value\":\"${user.employeetype}\"},{\"id\":\"home-cost-centre\",\"value\":\"${user.customproperty3}\"},{\"id\":\"emp-location\",\"value\":\"${user.customproperty6}\"},{\"id\":\"expiresAtReason\",\"value\":\"\"}],\"country\":\"BHR\",\"timezone\":\"London/Europe\",\"language\":\"en_GB\"}",
"httpHeaders": {
"Content-Type": "application/json",
"x-api-key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"x-tenant-id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
},
{
"name": "call2",
"connection": "userAuth",
"url": "https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"httpMethod": "PATCH",
"httpParams": "{\"managerId\":\"${managerAccount.username}\",\"jobAssignmentId\":\"${user.employeeid}\",\"jobAssignmentName\":\"${user.customproperty31}\",\"managerJobAssignmentId\":\"${managerAccount.employeeid}\",\"organisationFrameworkId\":\"OF1\",\"organisationLevelId\":\"104\",\"positionFrameworkId\":\"PF1\",\"positionLevelId\":\"104\",\"startDate\":\"${user.customproperty7}\",\"endDate\":\"${user.enddate}\",\"isOrganisationManager\" : \"false\"}",
"httpHeaders": {
"Content-Type": "application/json",
"x-api-key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"x-tenant-id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}
When Saviynt is trying to create the user in Application. from logs we are receiving below error
I feel I'm receiving this error because of the connection. Could you please help me find a way to achieve this without any authorization code?
10/31/2023 01:13 AM
@PuspanjaliM could you please correct the connectname in your JSONs .
Connection JSON
{
"authentications": {
"acctAuth": {
Create Account JSON
"connection": "userAuth",
.
10/31/2023 01:43 AM
Hi Sumathi,
Thanks I updated the Create Account JSON.
However I'm receiving the same error(Access Token is null)
Create Account JSON.
{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://,
"httpMethod": "PATCH",
"httpParams": "{\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"email\":\"${user.email}\",\"expiresAt\":\"2006-10-25 14:51:38\",\"customFields\": [{\"id\":\"emp-number\",\"value\":\"${user.employeeid}\"},{\"id\":\"emp-type\",\"value\":\"${user.employeetype}\"},{\"id\":\"home-cost-centre\",\"value\":\"${user.customproperty3}\"},{\"id\":\"emp-location\",\"value\":\"${user.customproperty6}\"},{\"id\":\"expiresAtReason\",\"value\":\"\"}],\"country\":\"BHR\",\"timezone\":\"London/Europe\",\"language\":\"en_GB\"}",
"httpHeaders": {
"Content-Type": "application/json",
"x-api-key": "",
"x-tenant-id": ""
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
},
{
"name": "call2",
"connection": "acctAuth",
"url": "https://,
"httpMethod": "PATCH",
"httpParams": "{\"managerId\":\"${managerAccount.username}\",\"jobAssignmentId\":\"${user.employeeid}\",\"jobAssignmentName\":\"${user.customproperty31}\",\"managerJobAssignmentId\":\"${managerAccount.employeeid}\",\"organisationFrameworkId\":\"OF1\",\"organisationLevelId\":\"104\",\"positionFrameworkId\":\"PF1\",\"positionLevelId\":\"104\",\"startDate\":\"${user.customproperty7}\",\"endDate\":\"${user.enddate}\",\"isOrganisationManager\" : \"false\"}",
"httpHeaders": {
"Content-Type": "application/json",
"x-api-key": "",
"x-tenant-id": ""
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}
ERROR