Is it possible to have organization based landing dashboard customization?

Hi Team,

I am using Helical Insight 3.0. There are multiple organizations as tenants and users. Now every organization should have a dashboard as landing page that too different. Is something like this possible?
Thank You.

Hi Anu,

yes, that is possible.
Save the below mentioned code as welcome.jsp and save it in the location “C:\Program Files\Helical Insight\hi\apache-tomcat-7\webapps\hi-ee\WEB-INF\jsp\login”. The path might be different if you are on a different OS. In the below code you can see there are different organization names like swcustomer5 and then after that, a forward page is present which is the landing page of the dashboard where it should get redirected. You can change that and extend that as per your requirement.

Location : hi/apache-tomcat-7/webapps/hi-ee/WEB-INF/jsp/login/welcome.jsp

<div>
<c:set var ="orgName" value="${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.org_name}" />
<auth:authorize access="hasRole('ROLE_ADMIN')">
<c:if test="${param.file ne null and param.dir ne null}">
<jsp:forward page="/hi.html"/>
</c:if>

<c:if test="${param.file eq null}">
<c:if test="${orgName eq 'swcustomer5'}">
<jsp:forward page="/hi.html?dir=1530683936494/1538745485381/FedEx_Form_Statistics_Dashboard&file=fedEx.efw&mode=dashboard"/>
</c:if>

<c:if test="${orgName eq 'fedex'}">
<jsp:forward page="/hi.html?dir=1530683936494/1538745485381/FedEx_Form_Statistics_Dashboard&file=fedEx.efw&mode=dashboard"/>
</c:if>

<jsp:forward page="/hi.html?dir=1530683936494&file=a93f1654-6394-4351-b9fb-0a3552af91f3.efw"/>
</c:if>

</auth:authorize>

<auth:authorize access="isAuthenticated()">
<c:if test="${orgName eq 'swcustomer5'}">
<jsp:forward page="/hi.html?dir=1530683936494/1538745485381/FedEx_Form_Statistics_Dashboard&file=fedEx.efw&mode=dashboard"/>
</c:if>

<c:if test="${orgName eq 'fedex'}">
<jsp:forward page="/hi.html?dir=1530683936494/1538745485381/FedEx_Form_Statistics_Dashboard&file=fedEx.efw&mode=dashboard"/>
</c:if>

<jsp:forward page="/hi.html?dir=1530683936494&file=a93f1654-6394-4351-b9fb-0a3552af91f3.efw"/>
</auth:authorize>
</div>

Thank You
Team Helical Insight.