Changes

Jump to: navigation, search

Primary role

504 bytes added, 18:54, 29 August 2013
no edit summary
{{UnderConstruction}}A typical URL to bring a user to a SmartSimple login page will be in the following format:<nowiki>http://grants.smartsimplebk.us/s_Login.jsp?lang=1&prole=0</nowiki>
<nowiki>http://grantsHowever, if one replaces the ''0'' in the URL's ''prole=0'' suffix with the [[roleid|role ID]] of the role they wish their login session to be constrained to, the user will be logged in and be presented with the portal view associated with that role.smartsimplebkThis method is referred to as ''passing a parameter'' with the login URL.us/s_LoginThe role ID specified in the URL is referred to as the ''primary role''.jsp?lang=1&prole=0</nowiki>
This allows for the ability to silo a user into a particular portal view when they possess multiple roles with multiple different portals (i.e. access to different UTA's and views that don't work well together and need to be mutually exclusive). The login page allows you to pass in a parameter for a [[roleid|role ID]].
==Returning the primary role with a variable==
Note: do not use the ''@me.'' syntax, i.e. ''@me.primaryroleid@''.
 
In the normal course, the ''@primaryroleid@'' variable will return "0". If the user has logged in using the method described above, the variable will return the [[roleid|role ID]] of the "primary role" used to log in.
<!--Related Tickets:
8,849
edits

Navigation menu