Skip to main content
1-Visitor
Feb 12, 2021 12:44 PM UTC
Solved

Organization's branches login

Hi,

I Have created an organization tree as shown in the attached image.
And also created different groups and assigned it for each branches. Most of the branches have different Homepage, for example here  machines and Line Supervisors both have different Homepages.

My requirement is,
When a user from groups assigned to 'Machines' login, he should see Machines Homepage. The same goes with 'Line Supervisor', when a user from that group login he should be able to see the Line Supervisor login page.

The organization tree only have option to add Home mashup at the 'Company_Name' level and at the individual user level(not to a group). If i am login with url: .../Thingworx/FormLogin/Company_Name . It will show the common home page assigned to 'Company_Name', which is incorrect.

How do i resolve this Problem?  

 

Thanks,

Sri1

c_lowyAnswer
16-Pearl
Feb 18, 2021 7:03 AM UTC

Hi @VaibhavShinde,

 

The method detailed in the article is a suggestion of how to work around the fact that there is not out-of-the-box functionality to assign a HomeMashup to a User Group. This method indeed requires a "Rediretion Mashup" containing only a Contained Widget. 

The MashupRedirection service need to be called within the RedirectionMashup : the result of the MashupRedirection service is bound to the Name parameter of the Contained Mashup widget.

6 replies

16-Pearl
Feb 12, 2021 3:53 PM UTC

Hi @Sri1,

You can refer to the following article from our Knowledge Base : Set User's Home Mashup based on User Group in ThingWorx Platform.

Translate
16-Pearl
Feb 13, 2021 7:00 AM UTC

Hi @c_lowy 

@ above article, When to call the service ? And is it require to create new empty redirector mashup when we have already  a mashup created as home mashup. ?

 

Thank you 

Translate
1-Visitor
Feb 15, 2021 6:54 AM UTC

Okay, i Got it .

But an issue is when i have two users in a group. when i try Login using first user its Login success and getting HomePage , but when i try Login with second user its not getting HomePage.

I know i had given different permissions for both users. but i am unable to trace the issue(what permissions are required?).

in Same service i am using currentSessionInfo function to check user belongs to which group. First user having permission to run currentSessionInfo function but not for second one. Is there any access permission need give for Second user? 

 

Thanks

Translate
Support
Feb 18, 2021 8:29 PM UTC

Hi @Sri1.

 

If you feel your issue has been addressed, please mark the appropriate response as the Accepted Solution for the benefit of others with the same issue.

 

Regards.

 

--Sharon

Translate