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

Substring in AD groupImportMapping

Amar_Simha
Regular Contributor
Regular Contributor

Hi Team,

We are currently using managedBy to retrieve owners from AD. We have two different types of IDs in AD and have two different endpoints to manage those lets call endpoint A & endpoint B. All the group owners set in AD are IDs which beloing to endpoint A. 

This is causing issue where we are not able to import group owners in endpoint B as corresponding account does not exist. As a workaround we are looking for a custom solution and to have this we need to have ID in any of custom property. As we know, DN is retrieved when managedBy is mapped to custom property.

I wanted to check if substring is supported in groupImportmapping for AD connector extract only ID from DN.

Eg. Owner DN - CN=emp01,ou=users,dc=abc,dc=xyz,dc=com

expected - emp01

Please share your views.

7 REPLIES 7

naveenss
All-Star
All-Star

Hi @Amar_Simha  I don't think this is doable using the substring in groupImportMapping. 

You might need to run a Sav4Sav job in trigger chain after the AD import to alter the data in the custom property.

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

Amar_Simha
Regular Contributor
Regular Contributor

Thanks @naveenss for the update. So Substring function is not supported in groupImportMapping field? Is there a documentation on javascript functions supported in that field in AD connector.? please suggest.

String functions are not supported during data import in AD connector . Please use enhanced Query


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

Amar_Simha
Regular Contributor
Regular Contributor

Thanks @rushikeshvartak , can you possibly help with an example for the same?

SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(a.customproperty1, '=', -1), ',', 1) AS accounts__customproperty20 , accountkey as accounts__primarykey from accounts where endpointkey =100 


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

Amar_Simha
Regular Contributor
Regular Contributor

Thanks @rushikeshvartak for the query, the custom propery is to be udpated at entitlements level. I am working on tweaking the query, just wanted to check if enhanced query is supported for entitlements.

Its supported and validated 


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