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

Importing only specific groups OpenLDAP

Robbe_Cronos
Regular Contributor II
Regular Contributor II

We have a use case where we only want to import groups of 2 OUs in OpenLDAP.

There are 5 group OUs: ou1, ou2, ou3, ou4 and ou5. How would we go about only importing groups from ou1 and ou2? The searchfilter does not help as this can only contain 1 specific group ou.

Thank you!

3 REPLIES 3

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @Robbe_Cronos,

In the Connector groupImportMapping, you need to add the advanceGroupFilter for the OU's as shown in the sample below.

{

"importGroupHierarchy": "true",

...

"groupObjectClass": "(objectclass=group)",

"advanceGroupFilter":{"memberOf":{

"OU=ABC,DC=saviyntlabs,DC=org": ["(&(objectClass=group))"],

"OU=XYZ,DC=saviyntlabs,DC=org": ["(&(objectClass=group))"]}},

"mapping":

"memberHash:member_char,entitlement_value:distinguishedName_char,

....

}

https://docs.saviyntcloud.com/bundle/AD-v23x/page/Content/Configuring-the-Integration-for-Importing-... 

If you find the above response useful, Kindly Mark it as "Accept As Solution".

it seems we had a small typing error in our advanceGroupFilter, it works correctly now.

Thank you!

Manu269
All-Star
All-Star

Can you try below option :

"advanceGroupFilter":
{"memberOf":
{"OU=TestGroups,DC=XXXX,DC=XX":
["(&(objectClass=group)(displayName=ABC))"],
"OU=XYZ,DC=XXXX,DC=XXX": ["(&(objectClass=group))"]
}

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