Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

SaviyntForSaviynt Connection through User value update

Raghu
All-Star
All-Star

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?


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.
3 REPLIES 3

Manu269
All-Star
All-Star

@Raghu use basic authentication.

Sample json : Understanding the Integration between EIC and Saviynt (saviyntcloud.com)

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

@Manu269  I not see any Basic authorization connection json , if have sample could you provide


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

{
"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
]
}
}
}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.