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

How to allow Service Account Creation on Databases(Postgres) with special char allowed

sk
All-Star
All-Star

Hi Team,

We are working service accounts creation on Databases(postgres) and we were able to achieve it successfully. But recently identified that creation of service account is failing when account name consists hypen(-). 

We figured that to allow this special char we need to make the DB statement as below. 

CREATE USER "svc-test1-01042023" WITH PASSWORD 'xxxxxxxx'

Basically if we surround the account name with double quotes (") we were able to create the account.

Now how can we implement it in Saviynt because the Create Account JSON looks like below

{"CreateAccountQry": "CREATE USER ${accountName} WITH PASSWORD '${randompassword}';"}

If I introduce the double quotes around account name it is complaining about JSON format.

{"CreateAccountQry": "CREATE USER "${accountName}" WITH PASSWORD '${randompassword}';"}

We tried surrounding account with single quotes but on DB it is not allowing the special char with single quotes only with Double quotes it is working as expected.

So how can I achieve this?


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

rushikeshvartak
All-Star
All-Star
{"CreateAccountQry": "CREATE USER \"${accountName}\" WITH PASSWORD '${randompassword}';"}

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.