Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/10/2024 12:14 AM
Hi Team,
We need to update Users table title update via API call
Can you suggest how we can implement Connection and Userupdate Json, how we can pass token or user and password for api connection.
Sav4SavREST Connection
UserUpdateJson:
{
"actions": {
"Update Login": {
"call": [{
"name": "call1",
"connection": "acctAuth",
"showResponse": true,
"url": "https://XXXX/ECM/api/login/ECM/api/v5/updateUser",
"httpMethod": "POST",
"httpContentType": "application/json",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpParams": "{\"username\":\"${user.username}\",\"title\":\"${user.title}\"}",
"successResponses": {
"statusCode": [200, 201],
"message": "User Updated Successfully"
}
}]
}
}
}
Connection Json:
{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed",
"FAILURE",
"INVALID_SESSION_ID"
],
"timeOutError": "Read timed out",
"errorPath": "errors.type",
"retryFailureStatusCode": [
401,403
],
"maxRefreshTryCount": 5,
"tokenResponsePath": "sessionId",
"tokenType": "Bearer",
"accessToken": "Bearer ABC"
}
}
}
Note : Here how we can pass token where we can get, as of now am log with Postman instance username/pwd , can i pass my credentials? please suggest we are new this flow dev work?
06/10/2024 12:26 AM
@Raghu use basic authentication.
Sample json : Understanding the Integration between EIC and Saviynt (saviyntcloud.com)
06/10/2024 03:13 AM
@Manu269 I not see any Basic authorization connection json , if have sample could you provide
06/10/2024 07:25 PM
{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"httpHeaders": {
"Accept": "application/json"
},
"authError": [
"InvalidAuthenticationToken"
],
"url": "https://SaviyntURL/ECM/api/login",
"httpMethod": "POST",
"httpContentType": "application/json",
"errorPath": "error.code",
"maxRefreshTryCount": 2,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"authHeaderName": "Authorization",
"accessToken": "Bearer ABCD",
"httpParams": "{\"username\":\"ABD\",\"password\":\"PASSWORD\"}",
"retryFailureStatusCode": [
401
]
}
}
}