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

Error while account and entitlement reconciliation via REST connector

adityachadde
New Contributor III
New Contributor III

Hi,

We are trying to reconcile the accounts and entitlements using the REST connector.

API having authentication as Basic. We are using the below connection JSON

{
"authentications": {
"acctAuth": {
"authType": "Basic",
"url": "/users",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {},
"httpContentType": "text/html",
"properties": {
"username": ""
"password": ""
},
"expiryError": "Couldn't authenticate you",
"authError": [
"Couldn't authenticate you"
],
"timeOutError": "Read timed out",
"errorPath": "error",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic asdfghjkl",
"testConnectionParams": {
"http": {
"url": "",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"successReponse": [],
"successResponsePath": "",
"errors": [
"Couldn't authenticate you"
],
"errorPath": "error"
}
}
}
}

We are getting an error as 

{"status":401,"code":"E_BAD_CREDENTIALS_ER
ROR","message":"Authentication failed because an
invalid credential is
provided.","details":"Authentication
failed.","id":"8ef18e35-5cda-40ed-b25a-53ec008e7c3
7"}.

Please help us with this.

Best Regards,

Aditya Chadde

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

Is it working from postman ? If yes share screenshot 

it seems username and password is wrong in saviynt 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi @rushikeshvartak,

Yes, it is working fine in postman with the same username and password.

adityachadde_0-1673441723008.png

Best Regards,

Aditya Chadde

Share body of api & login api


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

rushikeshvartak
All-Star
All-Star

Content type is wrong it should be application/json


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi,

Even after changing the content type to application/json. We are getting the same error.

Best Regards,

Aditya Chadde