FAQ: I want to check the SAML response attribute name to be set in Authentication.json in SAML authentication settings
## Answer
Use the developer tools of your web browser.
---
## Overview
The following describes how to check the attribute name of the SAML response to be specified in SamlParamters.Attributes of Authentication.json in the [SAML Authentication](/en/manual/saml) settings.
(The following is the procedure when using Google Chrome as the web browser. If you are using a different web browser, please read and follow the appropriate steps.)
1. Follow the steps in the manual below to add the SAML authentication function (you can skip setting SamlParamters.Attributes in Authentication.json).
2. After displaying the login screen of Pleasanter, open the developer tools with the "F12" key.
3. Click the "SSO Login" button to start SAML authentication, and when you return to the Pleasanter screen from the ID provider, perform the following.
- Select the "Network" tab in the developer tools
- Select "ACS" under "Name" on the left
- Select the "Headers" tab in the center, scroll through the displayed content to find Form Data
- Copy the contents of the SAML Response
![image](https://pleasanter.org/binaries/690beafc65b8494a9f16158487734a80)
4. Set the copied content to $base64SamlResponse in the following script.
PowerShell script to decode SAML Response (Base64) and save it as an xml file
----
```
$base64SamlResponse = "Paste SAMLResponse here"
$outputFile = ".\samlResponse.xml"
$xml = [xml]([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($base64SamlResponse)));
$xmlwriter= New-Object System.Xml.XmlTextWriter($outputFile, [System.Text.Encoding]::UTF8);
$xmlwriter.Formatting = [System.Xml.Formatting]::Indented;
$xml.Save($xmlwriter);
$xmlwriter.Close();
```
----
5. Paste the above script into a text editor or similar and save it with the extension "*.ps1".
6. Right-click the saved script file and select "Run with PowerShell" to run it. samlResponse.xml will be output to the same folder as the script file (.ps1).
7. Open the output XML file and check the attributes defined in <AttributeStatement>.
## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/saml">Use SAML authentication in Pleasanter</a><span>10.04.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />