Hello Expert,
How can I redirect 2 different user with different webrole. (A, B) .
Both are authorized user.
After the login , I want to redirect the fist User with webrole A to the webpage page 1.
After the login,I want to redirect the second User with webrole B to the webpage page 2.
How can I proceed ?
Do you have any suggestions?
Thank you !
This can be accomplished using a combination of Liquid and JavaScript.
Use the user.roles Liquid tag to determine which roles the user has, and then user JavaScript to perform the redirect.
https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/liquid-objects#user
Include the JavaScript in the Footer Web Template.
The tricky part is figuring out when a user is signing in, since you don't want to redirect them on every page, only after signing in - how to do that depends on your implementation.
Nick
Lucas001
60
Super User 2025 Season 1
Fubar
55
Super User 2025 Season 1
surya narayanan
35