PeoplePickerSettings.SearchActiveDirectoryDomains not showing anything in SharePoint

Frank Martin 411 Reputation points
2023-01-17T06:18:20.12+00:00

I am trying to add another domain in SharePoint People Picker but before that I want to see what current setting is. So, I ran the following commands, but it is not displaying anything on screen. Is this normal? Shouldn't it show what my current People Picker settings are?

Add-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue
$webApp = Get-SPWebApplication http://MyWebApplication
$webApp.PeoplePickerSettings.SearchActiveDirectoryDomains
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,365 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,070 questions
{count} votes

Accepted answer
  1. Yi Lu_MSFT 16,751 Reputation points Microsoft Employee
    2023-01-19T07:01:05.2733333+00:00

    Hi @Frank Martin

    You could try this cmdlet to get the People Picker settings of the Web Application.

    Get-SPPeoplePickerConfig
       -WebApplication <SPWebApplicationPipeBind>
       [-AssignmentCollection <SPAssignmentCollection>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
    
    

    For more information, you could refer to:

    [https://learn.microsoft.com/en-us/powershell/module/sharepoint-server/get-sppeoplepickerconfig?view=sharepoint-server-ps


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful