IDE-1590 automatically create Data source explorer connection

Sometimes the portal name can be different.  Is there a way for us to detect the portal name?