how to create LDAP query for User profile sync SharePoint on-premise

RajKumar 86 Reputation points
2022-09-16T06:28:50.677+00:00

I am trying to create LDAP query to sync specific groups from AD instead of syncing all 100's of groups to User profile sync in SharePoint 2019.
Example: I would like to sync anything that as "Groups", "ServiceAccounts" "Users", "Vendors".

Can someone please help me out as I don't see any article from Microsoft to filter out and sync/import specific OU's.
241696-image.png

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,413 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,940 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jinwei Li-MSFT 4,726 Reputation points Microsoft Vendor
    2022-09-19T09:14:01.603+00:00

    Hi @RajKumar ,

    I found the following link for your reference, hope it would help you.
    Active Directory: LDAP Syntax Filters


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


  2. Gary Reynolds 9,416 Reputation points
    2022-09-23T10:47:26.087+00:00

    Hi,

    With a standard LDAP query there is not an option to search based on the OU, as the BaseDN in the filter is the method that is normally used.

    One of the options is to set an attribute on the objects that you want to include and then use a standard LDAP query to return the objects with the attribute set.

    Gary.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.