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

Rest Connector - Create/Updated/Remove Account Jsons failing during first time provisioning

NishkalaPuli
New Contributor II
New Contributor II

Hi,

Below is my connection json:

{
"authentications": {
"acctAuth": {
"authType": "BasicWithAccessToken",
"url": "https://login.microsoftonline.com/0*******3/oauth2/v2.0/token",
"httpMethod": "POST",
"httpParams": {
"grant_type": "client_credentials",
"client_id": "12d0220******04fe6cfb1",
"client_secret": "M2c8Q~N******roWeIzaE~",
"scope": "api://007d*****e/.default"
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded",
"Authorization": "Basic MTJkMDIyMDUt***************************RVVfbm1yb1dlSXphRX4="
},
"properties": {
"userName": "12d02205***********4fe6cfb1",
"password": "M2c8*****************WeIzaE~"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "Unauthorized. Access token is missing or invalid.",
"authError": [
"HTTP ERROR",
"USER_AUTHENTICATION_FAILED",
"PARTNER_AUTHENTICATION_FAILED",
"Authentication Failed",
"Authentication failed.",
"InvalidAuthenticationToken",
"AuthenticationFailed",
"Authentication_MissingOrMalformed",
"Authentication_ExpiredToken",
"HTTP ERROR: 401",
"401 Unauthorized",
"401",
"403",
"400",
"invalid_client"
],
"timeOutError": "Read timed out",
"errorPath": "message",
"maxRefreshTryCount": 6,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "abcxyz",
"retryFailureStatusCode": [
401,
400,
403,
500
]
}
}
}

 

Since the access token above is abcdxyz, when a create/update/remove account task is created, it fails the first time, The second time it works.. How do I make it work the first time ?

1 REPLY 1

rushikeshvartak
All-Star
All-Star

try

"accessToken": "Bearer abcxyz",


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