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

REST Connector provisioning not working

Robbe_Cronos
Regular Contributor II
Regular Contributor II

Hello,

We are trying to provision accounts to our Gitlab application. We have already managed to import accounts, entitlement and projects from Gitlab. 

But when we make a task for a new account in the Gitlab environment and run the WSRETRYJOB, we get a failed task back. Our JSON looks like this.

{
"accountIdPath": "accountName",
"responseColsToPropsMap": {
"displayname": "call1.message.username~#~char",
"name": "call1.message.username~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://DNS NAME/api/v4/users",
"httpMethod": "POST",
"httpParams": "{\"username\": \"${user.username}\",\"force_random_password\":\"false\",\"name\": \"${user.firstname}\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
},
"unsuccessResponses": {
"statusCode": [
404
]
}
}
]
}

We don't get any provisioning comments in our task viewer like we did when we provisioned AD and the application logs don't show valuable errors.

6 REPLIES 6

rushikeshvartak
All-Star
All-Star
{
   "accountIdPath":"call1.message.id",
   "responseColsToPropsMap":{
      "displayName":"call1.message.username~#~char",
      "name":"call1.message.name~#~char"
     
   },
   "call":[
      {
         "name":"call1",
         "connection":"acctAuth",
         "url":"https://domain.gitlab.com/api/v4/users",
         "httpMethod":"POST",
         "httpParams":"{\"email\": \"${user.email}\",\"username\": \"${user.username}\",\"password\":\"${user.password}\",\"name\": \"${user.firstname}\"}",
         "httpHeaders":{
            "Authorization":"${access_token}",
            "Accept":"application/json"
         },
         "httpContentType":"application/json",
         "successResponses":{
            "statusCode":[
               201
            ]
         }
      }
   ]
}

Can you try above


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

This does not work either. 

Please share logs & screenshot from pending task

Does automated provisioning enabled under security system? 


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

Automated provisioning is enabled under the security system. We have also tried disabling it.

Logs: 

Robbe_Cronos_0-1662014145775.png

Screenshot of pending task: 

Robbe_Cronos_1-1662014254253.png

 

sahajranajee
Saviynt Employee
Saviynt Employee

@Robbe_Cronos ,

What is the expected API response on success. Could you share that?


Regards,
Sahaj Ranajee
Sr. Product Specialist

Robbe_Cronos
Regular Contributor II
Regular Contributor II

I can't really tell you the expected API response but what i can show you is how postman would give a response.

Robbe_Cronos_0-1662024002723.png

All of the required parameters are filled in.

[This post has been edited by a Moderator to improve the clarity of the post.]