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

How to view complete SQL Server DB Logs

harishyara
Regular Contributor
Regular Contributor

Hello Team,

 

We have an issue where DB record is getting inserted into SQL Server Database from Saviynt, but when adding DB roles using Add Access JSON, roles are not getting mapped. Please be note that this is working in lower instance but it's not working in prod.

Here is the DB Add Access JSON SQL Query - 

INSERT INTO [dbo].[USER_ROLES_TABLE] ([roleid] ,[userid]) VALUES ('${task.entitlement_valueKey.entitlement_value}' , '${user.username}');

 

Is there any config which we need to add in DB connection level to view the logs to see the actual insert query after values are evaluated/parsed just like INSERT INTO [dbo].[USER_ROLES_TABLE] ([roleid] ,[userid]) VALUES ('R01' , 'Tom');

Thanks,

Harish

2 REPLIES 2

Manu269
All-Star
All-Star

@harishyara refer this post for sample values :

 JSON - Handling Special Characters in DB connectio... - Saviynt Forums - 50545

Grant Access JSON template for MSSQL server - Saviynt Forums - 46674

Ideally you shoud be able to see the results in logs itself.

Also can you try passing hardcoded value and see if it works?

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

rushikeshvartak
All-Star
All-Star

make typo in json


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