Legacy Dev Forum Posts

 View Only

Sign Up

Active Directory to Pure Cloud Account Sync

  • 1.  Active Directory to Pure Cloud Account Sync

    Posted 06-05-2025 18:40

    PhillipCoronakes | 2017-01-12 21:12:14 UTC | #1

    Hi,

    I have an active directory connector, it only syncs ext2in and has a JSON script which includes a simple LDAP query: "ldapQuery": "(&(objectCategory=person)(objectClass=user)(mail=*))"

    Now, I want to modify the script so that if a user is deleted in AD, it deletes the account in Pure Cloud.

    I have looked at https://help.mypurecloud.com/articles/edit-json-configuration/ but I'm hesitant to test, as I cannot interpret if the query will delete all users or only AD deleted users.

    Also, can someone state what the data preview tool is for?

    Regards,

    Phillip


    Harper_Rebecca | 2017-02-16 01:18:05 UTC | #2

    Per the reply in the open support ticket:

    If you don't need any special conditions, the below would be the correct setup. The deletemissingexternal_users is what will make it remove users who are not found in AD, but were created from AD.

    { "deletemissingexternalusers": "true", "direction": "ex2in", "filter": [ }, { "userstate": { "membership": "exclusive", "state": "deleted" } } ], "name": "delete_users" }

    Caution: Org admin user may be deleted if "delete-missing-external-user" flag is set to "true". You may choose to create an Admin user that is always present in Active Directory


    PhillipCoronakes | 2017-03-13 22:35:29 UTC | #3

    Hi,

    How can i test this?


    tim.smith | 2017-03-14 16:17:14 UTC | #4

    If you're unsure of the result of your action, I'd suggest setting up a test AD environment and executing against that.


    system | 2017-08-28 19:29:51 UTC | #5


    This post was migrated from the old Developer Forum.

    ref: 784