Redirect user with role to desired page based on url selection on first login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2024 12:02 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2024 01:25 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2024 01:30 AM - edited ‎10-21-2024 01:31 AM
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2024 01:42 AM
Please open "SPEntryPage" script include and set redirect URL under this getFirstPage() function based on role or any other condition.
See in below example -
Hope this help you.
Regards
Moin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2024 02:02 AM
I am looking for the condition on how to retrieve the url put on by the user in the browser on their first login.