Redirect user with role to desired page based on url selection on first login

arshad199110
Tera Contributor

Users with any role is redirected to native ui page by default in first login and users without any role is redirected to portal page.

I want user with any role to be redirected to their desired page what they put in the URL. If they put in sp, it should redirect to portal. If they don't use SP, then to native view. This is with the first login.

4 REPLIES 4

Moin Kazi
Kilo Sage
Kilo Sage

Hi @arshad199110 ,

 

Could you please check the system property "glide.entry.first.page.entry"? If it doesn't exist, kindly create it and set the value to "new SPEntryPage().getFirstPage.URL()".

 

In your script include SPEntryPage  you can redirect users to a specific URL based on their role.

 

I hope this helps!

 

Best,
Moin

@Moin Kazi Thanks for your reply. This property is already setup in our instance. By default, user with any role is redirected to native view regardless of the url which he puts in the browser for the first time.

 

I want it like when user with role puts in portal url in the first login, it should redirect to portal. If user with role puts in a url other than portal, then he should be redirected to native view.

Please open "SPEntryPage" script include and set redirect URL under this getFirstPage() function based on role or any other condition.

 

See in below example -

 

MoinKazi_0-1729500083229.png

 

Hope this help you.

 

Regards

Moin

I am looking for the condition on how to retrieve the url put on by the user in the browser on their first login.