GitHub - Provisioning Account and Access Failed

Seshadri
New Contributor III
New Contributor III
Getting an error while trying to provision an account with access to the GitHub application from Saviynt. 
 
Attaching create account Json for your reference. 
 
{
  "accountIdPath": "call1.message.id",
  "call": [
    {
      "name": "call1",
      "connection": "acctAuth",
      "url": "https://<domain_name>/api/v3/admin/users",
      "httpMethod": "POST",
      "httpParams": "{\"login\": \"${SUBSTRING_INDEX(user.email,'@',1).replace('.','-')}\",\"email\": \"${user.email}\"}",
      "httpHeaders": {
        "Authorization": "${access_token}"
      },
      "httpContentType": "application/json"
    }
  ]
 
 
Attaching logs for your information.
1 REPLY 1

armaanzahir
Regular Contributor III
Regular Contributor III

Hi @Seshadri ,

Substring_index seems to be a MySQL String function.

Can you try the following format?

${user.email.substring(0, user.email.lastIndexOf('@')).replace('.','-')}

 

Thanks,

Armaan

Regards,
Md Armaan Zahir