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

Unable to populate Manager field value in Gsuite Application

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 9 2021 at 08:55 UTC

Hi,


In CreateAccountJSON we are trying to populate ‘Manager’ attribute in Gsuite Application by adding as follows, but it is not populated in Target System(Gsuite).

 

When I was tried in Postman it working fine as below


{

"primaryEmail": "dummy.user19@dev.homecareassistance.com",

"relations": [

{

"value": "dummy.user15@dev.homecareassistance.com",

"type": "manager"

}

]

}


But, In JSON it through the syntax error


image 

Can you please suggest to built JSON with correct sytanx.


Below is the Json


"httpParams": "{\"name\":{\"familyName\":\"${user.lastname}\",\"givenName\":\"${user.firstname}\"},\"password\":\"Welcome@123\",\"primaryEmail\":\"${user.email}\",\"manager\":\"${managerAccount.name}\"}",

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
4 REPLIES 4

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 9 2021 at 17:17 UTC

Hi Saleem,


The screenshot you have shared and the JSON you have posted towards the end of your question seems different.


Which one are you using in your Connector ? What is the exact error you see in the logs ?





Regards,

Avinash Chhetri

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 10 2021 at 07:28 UTC

Hi Saleem,

Are you using content type as application JSON in postman.
Also in the screenshot that you have provided JSON differs from the actual JSON provided.
Also HTTP parameter starts with two forward slashes,
Could you please try with the below 

"httpParams":\"{\"name\":{\"familyName\":\"${user.lastname}\",\"givenName\":\"${user.firstname}\"},\"password\":\"Welcome@123\",\"primaryEmail\":\"${user.email}\",\"manager\":\"${managerAccount.name}\"}",


This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 11 2021 at 06:22 UTC

Now its working by using syntax 


\"relations\":[{\"type\":\"manager\",\"value\":\"${managerAccount.name}\"


Thank you


This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on November 11 2021 at 17:04 UTC

Saleem,


Thats exactly how you have it in the original post (screenshot)




Regards,

Avinash Chhetri

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.