select requestGateway, provider, userAccessURL from tbl_SSO_providers with (nolock) where domainOwnerId= and domainOwnerType = and providerRole = 'IDENTITY' and providerId = select ssoId from fsenablers..tbl_CUS_Websites with (nolock) where websiteId = and portal_ownerId = and portal_ownerType =