We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

SAP Success Factor connection from Postman

musthak
New Contributor
New Contributor

HI 

we are trying to do a sap success factor connection from postman, but we are unable to make a connection with client ID , secret ,  link, ...do u have a working json or postman screenshot for successful connection..?

3 REPLIES 3

rashmirudrappa
New Contributor III
New Contributor III

Hi ,

We need to use below API calls.

Step1: Get Refresh Token

rashmirudrappa_0-1672653452581.png

Step2: Get Access Token

Use the Refresh token generated in step 1 to get access token

rashmirudrappa_1-1672653872666.png

Step3: Get User Details

Use the access token generated in step 2 to get user details

rashmirudrappa_2-1672654025197.png

Thanks

Rashmi

 

rashmirudrappa
New Contributor III
New Contributor III

Hi Musthak

Connection Json

{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "https://*******.com/oauth/token",
"httpMethod": "POST",
"httpParams": {
"company_id": "<to be filled>",
"client_id": "<to be filled>",
"grant_type": "urn:ietf:params:oauth:grant-type:saml2-bearer",
"assertion": "${refresh_token}",
"new_token": "true"
},
"httpHeaders": {},
"httpContentType": "application/x-www-form-urlencoded",
"authError": [
"Unable to authenticate the client",
"Invalid OAuth token Bearer",
"Unable to retrieve access token"
],
"retryFailureStatusCode": [
401,
403
],
"errorPath": "",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"refreshType": "RefreshToken",
"tokenType": "Bearer",
"accessToken": "Bearer <to be filled>",
"refreshToken": "<to be filled>",
"refreshTokenAuthError": [
"Unable to retrieve SAML assertion",
"The provided SAML assertion is expired",
"The SAML assertion has expired"
],

"refreshTokenErrorPath": "errorMessage",
"refreshTokenCall": {
"refreshTokenResponsePath": "",
"url": "https://*****.sapsf.com/oauth/idp",
"httpMethod": "POST",
"httpParams": {
"client_id": "<to be filled>",
"user_id": "<to be filled>",
"token_url": "https://*****.com/oauth/token",
"private_key": "<to be filled>"
},
"httpHeaders": {},
"httpContentType": "application/x-www-form-urlencoded"
}
}
}
}

this is really helpful , thanks , we still have permission issue with oauth but basic is working fine  from postman. also i tried to use the basic auth connection json from saviynt and it worked am able to pull the users into saviynt.