SAML 2.0 Single Sign-On
Custom attributes (4 posts)

  1. matejap
    Posted 2 years ago #


    I'm using this plugin in comporate enviroment with ADFS 2.0 and i would like to pass more attributes to wordpress. currently there are only login, email, first and last name and role. Is there any possibility to add for example employeeNumber. On ASFS side I can passtrough Employee-ID but on SAML side is no custom attribute for this. Or am I wrong?


  2. spencerghd
    Posted 2 years ago #

    Hi Matejap,

    i'm looking to do the same ... did you get a solution to this?

  3. CGaryDesigns
    Posted 2 years ago #

    Where are you planning on putting this employeeNumber value? in the saml_client.php you will see in the new_user function, how the SAML attributes are referenced in order to populate the object that is passed into the wp_insert_user method to create the user. You may want to look at making your modifications there. However, according to the documentation I find on the wp_insert_user method, it can only insert values into certain fields on the user record. See - http://codex.wordpress.org/Function_Reference/wp_insert_user. Not sure how this would work if you are putting this employeeNumber somewhere else related to the user.

  4. spencerghd
    Posted 2 years ago #

    Dear All,

    i've been trying to extend my SAML installation ... i want to copy the following from my active directory.

    - address
    - department
    - office location

    how do i extend the SAML definition to do this, and insert the information into the extended user profile?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SAML 2.0 Single Sign-On
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic