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

Import Account job ending up in 500 error (REST Connector)

LoneWolf2020
New Contributor III
New Contributor III

Hello,

I am trying to establish connection between Saviynt and REST application which has only one API call to import user accounts using username and password. The application does not have separate API endpoint for authentication. I am getting 500 error. Can you please help?

Connection JSON:

{
  "authentications": {
    "acctAuth": {
      "authType": "Basic",
      "url": "url",
      "httpMethod": "POST",
       "httpContentType": "application/json",
      "properties": {
        "username": "XXXX",
        "password": "XXXXX"
      },
      "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",
"retryFailureStatusCode": [
                401,
                402,
                403,
                404,
                405,
                500
            ],
            "unsuccessResponses": {
                "statusCode": [
                    500,
                    400,
                    401,
                    403,
                    404,
                    405,
                    409
                ]
     
    }
  }
}
}


Import Account ENT JSON:


{
    "accountParams": {
        "connection": "acctAuth",
        "processingType": "SequentialAndIterative",
        "call": {
            "call1": {
                "callOrder": 0,
                "stageNumber": 0,
                "http": {
                    "url": "https://xxxx.xxx.com",
                    "httpHeaders": {
                        "Authorization": "${access_token}",
                        "Accept": "application/json"
                    },
                    "httpContentType": "application/json",
                    "httpMethod": "GET"
                },
                "listField": "L",
                "keyField": "accountID",
                "colsToPropsMap": {
                    "accountID": "last_name~#~char",
                    "status": "active~#~char",
"customproperty9":"active~#~char"
                }
            }
        }
    },
    "entitlementParams": {},
    "acctEntParams": {}
}


Curl Command:
curl --location --globoff 'https://www.xxx.xx:8888/api/v2/database/XXXX_TEST/SysUserList?query=%7B%22active%22%3A%22Y%22%7D&res...' \
--header 'Authorization: ••••••'


NOTE: API Call working fine via Postman

2 REPLIES 2

NM
Esteemed Contributor
Esteemed Contributor

@LoneWolf2020 this much is fine 

{

  "authentications": {

    "acctAuth": {

      "authType": "Basic",

      "url": "url",

      "httpMethod": "POST",

       "httpContentType": "application/json",

      "properties": {

        "username": "XXXX",

        "password": "XXXXX"

      },

      "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",

"retryFailureStatusCode": [

                401,

                402,

                403,

                404,

                405,

                500

            ]

         

     

    }

  }

}

}

No need of unsuccess part also .. share url in text format and logs as well.


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

rushikeshvartak
All-Star
All-Star
  • Does connection is working ?
  • Did you added Base64 username password in connection json ?
  • Did you tried adding test connection param in connection json?
  • Please share logs in text file for report issue.
  • also share postman screenshot of response and input param

⚠️ Reminder: Mask possible PII such as employee names, email addresses, phone numbers, IP addresses, account details, company-specific URLs, and client names before sharing.⚠️


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