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

ACCOUNTEXISTSJSON

frayang
New Contributor
New Contributor

Hi all,

I am wondering how to use ACCOUNTEXISTSJSON ? Can we reference it in another JSON in the connector? Thanks

 

-Fran

11 REPLIES 11

rushikeshvartak
All-Star
All-Star

ACCOUNTEXISTSJSON is used to validate before creating new account , if ACCOUNTEXISTSJSON  return true then update Account json gets used else create account json

{"AccountExistQry":"select * from sys.server_principals where name='${accountName}'"}

Documentation - https://docs.saviyntcloud.com/bundle/Database-v24x/page/Content/Configuring-the-Integration-for-Impo...


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

NM
Honored Contributor II
Honored Contributor II

Hi @rushikeshvartak , it checks on target end of on saviynt side only?

@NM : It check on target. You are going to put a query to validate against target database


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

NM
Honored Contributor II
Honored Contributor II

@Saathvik So if it finds an account at the time of create account does it error out the task

Hi Rushikesh,

Thanks for the info.

You meant that Saviynt evaluates ACCOUNTEXISTSJSON  in DB connection while executing New Account tasks to provision to DB target, and once it returns true, a DB new account is created in Saviynt as manually provisioned?  Thanks

 

 

-Fran

{"AccountExistQry":"SELECT * FROM test.user_table WHERE samaccountname = '$(user.customproperty27)' "}

this configure threw errors while saving the connection. Any idea on this error?  what is wrong with my configuration? Thanks

-Fran

frayang_0-1716484430611.png

 

{"AccountExistQry":"SELECT * FROM test.user_table WHERE samaccountname = '${user.customproperty27}' "}

 

{} was missing


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

I still have the same errors after changing to

{

{"AccountExistQry":"SELECT * FROM test.user_table WHERE samaccountname = '${user.customproperty27}' "}

}

{"AccountExistQry":"SELECT * FROM test.user_table WHERE samaccountname = '${user.customproperty27}'"}


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

yeah. That works. Thanks

NM
Honored Contributor II
Honored Contributor II

Hi @frayang , if an account exists on application end did the task got errored out .. or account was created in saviynt?