FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    How to Remove First and Last Name Claims from SAML Responses in FusionAuth

    Scheduled Pinned Locked Moved Solved
    Frequently Asked Questions (FAQ)
    saml
    1
    2
    3
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wesley
      last edited by

      We need to remove the firstname and lastname claims from the SAML response FusionAuth sends back to one of our applications. How can we do this?

      W 1 Reply Last reply Reply Quote 0
      • W
        wesley @wesley
        last edited by

        You can remove claims from the SAML response using a SAML v2 populate lambda. For example:

        samlResponse.assertion.attributes['firstName'] = null;
        samlResponse.assertion.attributes['lastName'] = null;
        

        Attach this lambda to your SAML Identity Provider configuration for that application.

        Documentation: SAMLv2 Response Populate Lambda

        1 Reply Last reply Reply Quote 0
        • W wesley has marked this topic as solved
        • First post
          Last post