snc_external user logging into CSM Portal

Richard T
Kilo Guru

Hi

Trying to configure.setup the login rules and criteria for our new Customer Service Portal (csm).

Internal users with roles log on fine and are directed to the UI but when a customer with snc_external logs on the first land on the welcome.do page and only when  this is cleared from the URL do they end up at the /csm page

SPEntry has the portal set to /CSM/ but no other changes have been made.

Any ideas, I have read a mountain of info on logins but all point to SPEntry and that looks fine.

 

Thanks in advance.

Richard

 

4 REPLIES 4

JohnG3
Mega Guru

Curious what your modification was to SPEntry.

Have you revised the getFirstPageURL function to redirect the 'snc_external' Customer Contact to first land on /csm?

 

	getFirstPageURL: function() {
		var session = gs.getSession();
		this.logProperties('before', session);

		// has roles and is not a Service Portal page - go to UI16
		var nt = session.getProperty("nav_to");
		var isServicePortalURL = new GlideSPScriptable().isServicePortalURL(nt);
		var redirectURL = session.getProperty("login_redirect");

		if (user.hasRoles() && !redirectURL && !isServicePortalURL)
			return;

		

Richard T
Kilo Guru

Hi

The only changes here were to amend "this.portal="/csm/".

I did try using snc_external but that made no difference and SericeNow Hi told me this was because snc_external and snc_internal were considered defaults and not roles.

Hi suggested using the following:

var isinternal = user.hasRole("snc_internal");
if (isinternal && !redirectURL && !isServicePortalURL)
return;
I put this in and commented out the original code but it made no difference, the external users all end up at the Welcome.do page whilst inernal users go to the UI.

Thanks

Hi,
Have you managed to resolve this?

Thank you.

Richard T
Kilo Guru

Hi, yes all sorted now.