cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How to give non admin user visibility permission

Suraj2692
13-Aquamarine

How to give non admin user visibility permission

I have tried with login by organization URL but when I log in with any user it will show me a blank mashup

I have one organization name as "rezone" which under there are sub-organization which shows I below imageUntitled.png

Each organization unit include it group which contained many users,

SuperAdmin - super admin group

Admin - admin group

Trainer- trainer

 

I want to give visibly permission to each group so that whenever I am login with any user it will show his related mashup after login.

EX. If I log in with super admin user I want to show the super admin dashboard mashup after login

same when admin login I want to show the admin dashboard mashup and,

when trainer login I want to show the trainer dashboard mashup.

 

How will I achieve this? please suggest( I'm using Thingworx 9.0)

ACCEPTED SOLUTION

Accepted Solutions
emscur
13-Aquamarine
(To:Suraj2692)

Hi @Suraj2692,

 

Are you logging in through <server name>/Thingworx/Composer or using the Organization login page?

This is the URL you should be accessing for login:

  • <server name>/Thingworx/FormLogin/<Organization Name>

If you are still unable to load the Home Mashup for non-admin users, please refer to the following help articles:

 

Regards,

Emmanuel

 

View solution in original post

10 REPLIES 10

In the General Information tab you must select a Home mashup to which all users will be forwarded after the successful login.

Inside that mashup you must use a ContainedMashup widget whose Mashup property will be fed by a service that you must create in ThingWorx. That custom service should return the Mashup name you want based on the currently logged in user belonging to an Usergroup or Org - however you want. You will need to keep that mapping somewhere - a DataTable sounds enough for this (UserGroup -> MashupName)

I have created a create user service which help to create a user and assign
to particular group let's say admin group. So whenever I will create user
using mashup it'll go in the respected group and I assign each user it's
home mashup.

So whenever I login using admin group user it will redirect to there home
mashup..So how I can do that.
emscur
13-Aquamarine
(To:Suraj2692)

Hello @Suraj2692,

 

You can achieve this by adding some functionality to your customer CreateUser service. Add an input parameter inputUserGroup to the service so you can map what group created users are part of. Find some code snippet below:

 

if (inputUserGroup == "SuperAdmin") {
    Users[inputUserName].SetHomeMashup({
	name: "SuperAdminUserMashup" /* MASHUPNAME */
});
}
else if (inputUserGroup == "Admin") {
    Users[inputUserName].SetHomeMashup({
	name: "AdminUserMashup" /* MASHUPNAME */
});
} else if (inputUserGroup == "Trainer") {
    Users[inputUserName].SetHomeMashup({
	name: "TrainerUserMashup" /* MASHUPNAME */
});
} 

 

This code should be placed after the user inputUserName has been created and assigned a User Group. It is simply setting the Home Mashup for each user based on the inputUserGroup passed as input parameter to the service.

 

I hope you find this information helpful.

 

Regards,

Emmanuel

Suraj2692
13-Aquamarine
(To:emscur)

I have created three service which will create user one for super admin,
second for admin and thrid for trainer and assign them there group and home
mashup on creating user..

But when I login with using these user credentials. It will give me blank
screen after login.
Not showing there respective home mashup that was assigned to user.
emscur
13-Aquamarine
(To:Suraj2692)

Hello @Suraj2692,

 

You can verify the mashup was assigned to the user by finding that user entity and checking the Home Mashup specified for the user. If the Home Mashup was assigned correctly and you still cannot see it upon logging in, then the issue might be related to permissions. Ensure the User/User Group has permission to view the mashup and all its containing entities (Things, Thing Templates, Thing Shapes, Data Tables...).

 

Regards,

Emmanuel

Suraj2692
13-Aquamarine
(To:emscur)

Exactly, That's my question on how to give visibility permission to the non-admin users when they log in, it will show there related home mashup which I already assign to the user while creating on mashup.

Untitled.png

You can see the above image, super admin assign a home mashup still it will not showing home mashup after login.

emscur
13-Aquamarine
(To:Suraj2692)

Hi @Suraj2692,

 

Are you logging in through <server name>/Thingworx/Composer or using the Organization login page?

This is the URL you should be accessing for login:

  • <server name>/Thingworx/FormLogin/<Organization Name>

If you are still unable to load the Home Mashup for non-admin users, please refer to the following help articles:

 

Regards,

Emmanuel

 

Suraj2692
13-Aquamarine
(To:emscur)

Yes, I'm logged in to below organization URL

  • <server name>/Thingworx/FormLogin/<Organization Name>

I gave home mashup visibility permission to the super admin group from the permission tab in the mashup, but when I log in it will show me home mashup but not all data on this home mashup.

Am I wrong somewhere? Can I have to give all things,thingshpe,datatable mashup etc which comes into the super admin picture?

Is there any quick way to give super admin all entity visibility permission?

emscur
13-Aquamarine
(To:Suraj2692)

Hi @Suraj2692,

 

You need to give all the required permissions for the user to perform actions in this mashup. For instance, user needs run time permission to access and execute the services in all entities included in the mashup, such as service execute privileges on all services called by mashup, for example.

 

Refer to Understanding ThingWorx Platform Permissions for more information.

 

Thanks,

Emmanuel

slangley
23-Emerald II
(To:Suraj2692)

Hi @Suraj2692.

 

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

 

Thank you for your participation in our community!

 

Regards.

 

--Sharon

Announcements


Top Tags