Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

SaviyntForSaviynt Connection through User value update

Raghu
Honored Contributor
Honored Contributor

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
.

Raghu
Honored Contributor
Honored Contributor

@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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.