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

Object class change in LDAP OUD connector

bala
New Contributor II
New Contributor II

Hi Team,

We have 3 custom object classes and their respective attributes in LDAP OUD.

Now the requirement is based on user attributes these objects classes are added or removed.

To give example: 

Lets assume, we have custom object class A, class B and class C

Based on few user criteria we determine the object class of the account in OUD.  When user moves out to different criteria we need to remove old custom object class(with respective attributes) and add the new custom object class(with respective attributes)

Can we achieve this using account update json of LDAP OUD connector?

Any sample json available to change (Add/remove) object class? Please advise. Thanks.

 

3 REPLIES 3

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @bala,

You may refer : 
{
"objectClass": "${user.employeeclass=='Employee'?'[\"top\",\"person\",\"organizationalPerson\",\"ntUser\",\"inetOrgPerson\",\"hpPerson\",\"hpEmployee\"]':'[\"top\",\"person\",\"organizationalPerson\",\"ntUser\",\"inetOrgPerson\",\"hpPerson\",\"hpContingentWorker\"]'}"


Thanks.

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

bala
New Contributor II
New Contributor II

Hi Team,

Any updates on this please? 

rushikeshvartak
All-Star
All-Star

{
"dn": "cn=user1,ou=people,dc=example,dc=com",
"operations": [
{
"operation": "add",
"type": "objectClass",
"values": ["customObjectClassA", "customObjectClassB"]
},
{
"operation": "remove",
"type": "objectClass",
"values": ["oldCustomObjectClass"]
},
{
"operation": "replace",
"type": "attribute",
"name": "customAttribute",
"values": ["newValue"]
}
]
}


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.