Skip to content

I want to specify the user column by combining "givenName" and "surname" instead of "Name" with SAML authentication

Answer

When "Attributes": "Name" is empty, you can build "Name" from the values obtained with "LastName" and "FirstName" by setting "givenName" for "Attributes": "FirstName" and "surname" for "Attributes": "LastName".


Overview

With SAML authentication, when "Attributes": "Name" is null, "Name" is built from the values obtained with "LastName" and "FirstName".

Therefore, by writing it as follows, you can specify "Name" with "givenName" and "surname".

Authentication.json
1
2
3
4
5
6
7
8
    "SamlParameters": {
        "Attributes": {
            "Name": null,
            "FirstName": "givenName",
            "LastName": "surname",
                : omitted
        }
    }

How to Specify the Attribute Name Set for "Name"

If you have added the "FirstName" and "LastName" columns, you can set a value that combines "FirstName" and "LastName" into "Name" by specifying null for "Name" and adding "FirstName" and "LastName" to the user column names.

If no value can be obtained from the specified SAML attribute, the login ID is set.

Authentication.json
1
2
3
4
5
6
7
8
    "SamlParameters": {
        "Attributes": {
            "Name": "Name",
            "UserCode": "UserCode",
            "Birthday": "Birthday",
                : omitted
        }
    }

Specify null for Name.

Authentication.json
    "SamlParameters": {
        "Attributes": {
            "Name": null,
            "FirstName": "FirstName",
            "LastName": "LastName",
            "UserCode": "UserCode",
            "Birthday": "Birthday",
                : omitted
        }
    }