Skip to main content
1-Visitor
Apr 20, 2018 5:07 AM UTC
Question

How to build a role based access and corresponding home pages?

I have a system where the login has different roles. How can i build a uniform login page and navigate to respective home pages after login. 

3 replies

1-Visitor
Apr 20, 2018 7:06 AM UTC

You can programatically set Home Mashup for each user depending on the Role he has.

 

Users["userName"].SetHomeMashup({ name: "mashup_based_on_user_role" });

Translate
challa1-VisitorAuthor
1-Visitor
Apr 20, 2018 7:09 AM UTC

where should i set this?

Translate
1-Visitor
Apr 20, 2018 7:13 AM UTC

You can have a custom service to assign a role to a user (as there isn't User related events) and on this service to the previous instruction.

 

Also you can have another service (to check integrity) which iterates over Users and assign the correct Home Mashup.

Translate