Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Option to hide/disable IdP

Is there a way to disable/hide an IdP in the SAML SSO plugin. For example I want to add the test URL, but during normal workhours that one does not have to be visible to everyone.

I want to be able to enable and disable it when it is necessary. 

1 answer

1 accepted

0 votes
Answer accepted


Currently, there is no possibility to disable an IdP. If you are using the ‘IdP Selection Page' as IdP Selection Method (this can be found at SAML Single Sign On Configuration → IdP Selection) there is a way to hide an IdP.

Please note that our customization refers to our ‘Default IdP Selection Page Template’ (this can be found at SAML Single Sign On Configuration → Page Templates → IdP Selection Page Templates).

  • Please add an ‘#if’ conditional in the ‘#foreach($idp in $idps)’ loop
    • In our case we want to hide an IdP with the name ‘NOT VISIBLE’ (replace ‘NOT VISIBLE’ with the IDP name you want to hide. You can find the unique name at SAML Single Sign On Configuration → Identity Providers → Name *)
#if(!($ == "NOT VISIBLE"))
  • After adding the if condition, the modification must be saved and the new IdP Selection page is available immediately

CleanShot 2020-11-23 at 14.04.28@2x.png

Code snippet (complete foreach loop)

#foreach($idp in $idps)

  #if(!($ == "NOT VISIBLE"))


        <a href="$idp.ssoUrl">$</a> $idp.description




Please let us know if it works fine for you or if you need help.

You can always use ‘Reset to Default’ (SAML Single Sign On Configuration → Page Templates → IdP Selection Page Templates) if something went wrong and you will get our ‘Default IdP Selection Page Template’.

Best regards,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Apps for Confluence you won't want to miss: RSVP for September's Appy Hours

Calling all collaborators and Confluence users! Our Appy Hours event on September 29th features 4 presenters demoing functionality to superpower Confluence. Don't miss learning about these apps i...

125 views 0 9
Read article

Atlassian Community Events