Skip to main content
1-Visitor
April 20, 2018
Question

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

  • April 20, 2018
  • 3 replies
  • 3052 views

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
April 20, 2018

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

 

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

challa1-VisitorAuthor
1-Visitor
April 20, 2018

where should i set this?

1-Visitor
April 20, 2018

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.