and more in a single search tool across platforms. Read the announcement here. |
03/06/2024 11:54 PM - edited 03/07/2024 01:20 AM
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.
03/08/2024 04:39 AM - edited 03/10/2024 10:52 PM
Hello @bala,
You may refer :
{
"objectClass": "${user.employeeclass=='Employee'?'[\"top\",\"person\",\"organizationalPerson\",\"ntUser\",\"inetOrgPerson\",\"hpPerson\",\"hpEmployee\"]':'[\"top\",\"person\",\"organizationalPerson\",\"ntUser\",\"inetOrgPerson\",\"hpPerson\",\"hpContingentWorker\"]'}"
}
Thanks.
03/10/2024 01:34 AM
Hi Team,
Any updates on this please?
03/10/2024 11:15 AM
{
"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"]
}
]
}