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

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

NM
Valued Contributor
Valued Contributor

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
Valued Contributor
Valued Contributor

@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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

yeah. That works. Thanks

NM
Valued Contributor
Valued Contributor

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