Dismiss Notice

Register now to be one of the first members of this SharePoint Community! Click here it just takes seconds!

Dismiss Notice
Welcome Guest from Country Flag

Disabled users showing on custom contacts list

Discussion in 'SharePoint Blogs' started by /u/ShinyMachamp, Aug 14, 2019.

Thread Status:
Not open for further replies.
  1. /u/ShinyMachamp

    /u/ShinyMachamp Guest

    Blog Posts:
    Hi all

    Since SharePoint Online doesn't have a inbuilt contacts list which updates in real time I decided to make one myself.

    I have managed to get it so it's fetching data from Azure AD but this is also pulling disabled accounts and I don't want these showing.

    Things I have tried

    I stopped our on premise AD from syncing disabled accounts to Azure AD but this broke out Office 365 shared mailboxes from ex employees!!! (which have now been restored)

    Powershell: Ran Set-ADUser username -Add @{msExchHideFromAddressLists="TRUE"} to hide disabled users from appearing in address lists

    Set the Change query to {SearchBoxQuery} contentclass=SPSPeople –“SPS-HideFromAddressLists”:1

    And nothing :( Disabled users keep showing up in the list also mobile numbers arent showing either

    Can anyone give any assistance on this?


    submitted by /u/ShinyMachamp
    [link] [comments]

    Continue reading...
Thread Status:
Not open for further replies.

Share This Page

LiveZilla Live Chat Software