Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/08/2024 11:53 PM
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
05/09/2024 12:45 AM
@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?
05/09/2024 07:59 PM
make typo in json