Support » Plugin: Next Active Directory Integration » How to use “userPrincipleName”?

  • Resolved cwolff


    We have an existing production installation of ADI with many users…

    We now need to begin using “userPrincipleName” for the username and email address fields.

    How do we re-map this on our existing installation?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author schakko


    Hi @cwolff,
    please try this out in a test environment:

    – Do a database backup
    – You can remap the existing entries by issuing an SQL statement similar to
    UPDATE wp_user u LEFT JOIN wp_user_meta m ON u.ID = m.user_id SET u.user_email = m.meta_value, u.user_login = m.meta_value WHERE m.meta_key = 'next_ad_int_userprincipalname'
    – Disable (User > Use sAMAccountName for newly created users” (

    Thread Starter cwolff


    On the Attributes tab in ADI configuration, shouldn’t I be able to see the “userPrincipleName” attribute in the dropdown list column for “AD Attributes”?

    Plugin Author schakko


    userPrincipalName is not automatically populated but you can just enter the attribute in the dropdown list – the list editable.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to use “userPrincipleName”?’ is closed to new replies.