> For the complete documentation index, see [llms.txt](https://fusionauth.io/docs/llms.txt)

# SAML v2 & PagerDuty | FusionAuth Docs

Setting up PagerDuty to allow users to log in using FusionAuth via SAML v2.

# SAML v2 & PagerDuty

[Edit on GitHub](https://github.com/FusionAuth/fusionauth-site/blob/main/astro/src/content/docs/lifecycle/authenticate-users/integrations/saml/pagerduty.mdx)

[View Markdown](https://fusionauth.io/docs/lifecycle/authenticate-users/integrations/saml/pagerduty.md)

This explains how to use FusionAuth with PagerDuty.

## Prerequisites

**In PagerDuty:** you must have a [Business or Digital Operations plan](https://www.pagerduty.com/pricing/) and be the *Account Owner* in order to enable Single Sign-On. For more information about this feature, please visit their [SSO support page](https://support.pagerduty.com/docs/sso). If you do not have this role, please reach out to the **Account Owner** within your organization to configure the integration.

**In FusionAuth:** you need to be able to configure a SAML connection on an application. This can be done manually with a user account assigned either the `admin` or **application\_manager** role. It can also be done with an API key that has the **application** permission.

## Integration Walkthrough

### PagerDuty

1.  The *Account Owner* can configure the SSO settings by navigating to User Icon -> Account Settings -> Single Sign-On .
2.  Select the **SAML** radio button.
3.  Copy the **SAML Endpoint URL**.

### FusionAuth

1.  Click the Applications link in the sidebar.
2.  Create a new Application by clicking the green + button in the top right corner of the page.
3.  Enter a name, such as *PagerDuty*, for the app and then click on the SAML tab.
4.  Toggle the Enable SAML v2 switch to turn the integration on.
5.  Configure SAML functionality to integrate with your PagerDuty account.
    *   Set the **Issuer** value to `https://YOUR-SUBDOMAIN.pagerduty.com`, where `YOUR-SUBDOMAIN` is the value of your PagerDuty subdomain.
    *   Leave the **Audience** blank.
    *   Paste the SAML Endpoint URL you copied from PagerDuty into the **Authorized redirect URLs** field. The value in this field will be blue when entered.
6.  Save the application by clicking the *blue floppy disk icon* in the top right corner of the page.
7.  When redirected back to the Applications page, view your application details by clicking the magnifier green icon.
    *   In the dialog, scroll down to the SAML v2 Integration details section.
        
    *   Copy the Entity Id URL and open it in a new browser tab. This will contain configuration you'll need shortly.
        
        *   *Note: This address contains an XML file. If your browser doesn't automatically format it, you can copy everything and use [an online XML beautifier](https://xmlviewer.org/)*.
        *   Copy the contents of the `X509Certificate` element from the XML file and paste them in PagerDuty.
            *   You should paste the contents enclosed between `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`, like the example below:
                
                ```plaintext
                -----BEGIN CERTIFICATE-----
                <contents of X509Certificate copied from FusionAuth>
                -----END CERTIFICATE-----
                ```
                
    *   Copy the Login URL from FusionAuth SAML v2 Integration details section and paste it in PagerDuty's own **Login URL** field.
        
8.  In PagerDuty, click Save Changes at the bottom of the screen.

[Play](https://youtube.com/watch?v=ljhSRa8dy6I)

### Testing

To test the integration, open your PagerDuty application address in another browser or in private mode.

Below the login form, click the blue Sign In With Your Identity Provider button to navigate to the FusionAuth login screen. After logging in, you should be automatically redirected to your PagerDuty application already signed in with that same account.

## Disable

In PagerDuty, the **Account Owner** can disable SSO settings by navigating to the User Icon -> Account Settings -> Single Sign-On and choosing the **PagerDuty** radio button.