Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Load/Sync Particular LDAP groups in Liferay DXP
Hello, I want to load/sysnc specific LDAP groups into Liferay DXP, which filter I have to use ? and do I need to list out groups in ldap configuration on liferay instace configuration ? I am following this document https://help.liferay.com/hc/en-us/articles/360017896112-LDAP
Hi ,
If you update group info in ldap setting it will automatically sync user with that user group.
If not in liferay then it will create and assign user to that.
Thanks!
If you update group info in ldap setting it will automatically sync user with that user group.
If not in liferay then it will create and assign user to that.
Thanks!
thanks Nikihil for your response, but what I am asking is I have 10 groups and each group of 10k users, out of 10 groups, I want to load/sych particular groups (lets say 4 groups , I don't want to sync/load remaining 6 groups and their users into Liferay) into liferay from LDAP including with users of those groups.
any idea on this ?
I did not try it, but can't you just set the import method to Group (default is User) and then specify a groupfilter?
yes , I choose Group for import, can you please provide group filter and let me know where should I give that?
You need to enter a filter in the Groups Import Search Filter
Probably something like this is the default: (objectClass=groupOfUniqueNames)
Now you need to enter a filter, that specifies only the groups you need (alternatively you can specify the groups you want to exclude. You can negate the filter with the exclamation mark symbol). Just search for ldap filter examples.
Something like this should work:
&(objectClass=groupOfUniqueNames)(|(cn=GROUPNAME1)(cn=GROUPNAME2)(cn=GROUPNAME3))
In Java this would be the same as
if (objectclass.equals("groupOfUniqueNames") && (cn.equals(GROUPNAME1) || cn.equals(GROUPNAME2) || cn.equals(GROUPNAME3) ))
Probably something like this is the default: (objectClass=groupOfUniqueNames)
Now you need to enter a filter, that specifies only the groups you need (alternatively you can specify the groups you want to exclude. You can negate the filter with the exclamation mark symbol). Just search for ldap filter examples.
Something like this should work:
&(objectClass=groupOfUniqueNames)(|(cn=GROUPNAME1)(cn=GROUPNAME2)(cn=GROUPNAME3))
In Java this would be the same as
if (objectclass.equals("groupOfUniqueNames") && (cn.equals(GROUPNAME1) || cn.equals(GROUPNAME2) || cn.equals(GROUPNAME3) ))
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™