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

Using Dynamic Attributes in UPDATEACCOUNTJSON for a DB connector

VivvianRichards
New Contributor
New Contributor

Hi team,

I am trying to use dynamic attribute in UPDATEACCOUNTJSON for a DB connection, but after updating the dynamic values the UPDATEACCOUNTJSON is picking it up as NULL.

I am attaching the UPDATEACCOUNTJSON and the queries used for dynamic attribute.

I have already referred --Various Usage of Dynamic Attributes - Saviynt Forums - 37329

 

Below are the queries configured for the dynamic attributes in the end points these queries return the expected values when verified from Data Analyzer.

1.SurrogateOwnersAMAccountName
SELECT m.customproperty3 as ID FROM users AS u JOIN users AS m ON u.customproperty50 = m.username WHERE u.userkey =${requestee}

2. SurrogateOwnerDisplayName
SELECT m.customproperty19 as ID FROM users AS u JOIN users AS m ON u.customproperty50 = m.username WHERE u.userkey =${requestee}

3. SurrogateOwnerADDN
SELECT m.customproperty11 as ID FROM users AS u JOIN users AS m ON u.customproperty50 = m.username WHERE u.userkey =${requestee}

4. LineManagerFullName
SELECT m.displayName as ID FROM users AS u JOIN users AS m ON u.customproperty50 = m.username WHERE u.userkey =${requestee}

5. LineMangerEmailAddress
SELECT m.email as ID FROM users AS u JOIN users AS m ON u.customproperty50 = m.username WHERE u.userkey =${requestee}

 

 

Below is the UPDATEACCOUNTJSON configured in the connection --

 

{ "UpdateAccountQry": [ "USE [SQLD0227Q]", "EXEC [sp_ICM_UpdateUserFromSaviynt] @ICM_Case_ID = '${user.customproperty16}', @Manager_Name = ${requestAccessAttributes.get('LineManagerFullName')}, @Manager_Email_Address = ${requestAccessAttributes.get('LineMangerEmailAddress')}, @Surrogate_Owner = ${requestAccessAttributes.get('SurrogateOwnersAMAccountName')}, @Approver_Name = ${requestAccessAttributes.get('SurrogateOwnerDisplayName')}, @Approver = ${requestAccessAttributes.get('SurrogateOwnerADDN')}}" ] }

2 REPLIES 2

NM
Honored Contributor II
Honored Contributor II

@ @VivvianRichards , remove requestaccessattribute just pass dynamic attribute name

2)are you using a stores procedure?

Hey NM,

I've tried passing ${'DynamicAttributeName'} this approach didn't work.

Yeah, I am using a stored procedure.