Sonarqube SAML gave error: You're not authorized to access this page. Please contact the administrator

I came across the following link, SAML IDP Initiated Login.
And I did set the login URL like https://sonar.example.com/sessions/init/saml?return_to=%2F.
However I got an error:
The page you were looking for does not exist.