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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Levels of access for members

ak-31
1-Newbie

Levels of access for members

Hello,

In our mashup we have buttons which turn on/off some devices with html request (services used), some data displayed by LED widgets and map widget with markers which can be selected (changes the data shown). We want to make 2 types of users: the first one can press buttons and turn on/off devices, the second one can only check data on LED widgets and map. We couldn't set it up in that way for the second type of users, with any option we put permissions we got mashup fully working or fully disabled.


Are there any possibilities to solve it in such case?

1 ACCEPTED SOLUTION

Accepted Solutions
ak-31
1-Newbie
(To:ak-31)

It seems I like figured it out. It is possible to set up user's permission for every single service or event using "Property, Service or Event Overrides" field.

Other ways mentioned before surely can be very useful in different situations.

View solution in original post

3 REPLIES 3
Aanjan
9-Granite
(To:ak-31)

Andrew, this can be approached in couple different ways. Does having two separate Mashups make sense for you? You can have a Master Mashup with a Menu item linking to your sub Mashups, and you can give specific visibility permissions to your user group so that only they can see the item (and thereby go to that specific Mashup).

Another way would to be use Dashboards. Here's a link to the Dashboards section at our Help Center.

nkhose
1-Newbie
(To:ak-31)

Hi

As you say you have 2 different types of user , this can be achieved by writing a service for type of user  we can get  from

var result = Resources["CurrentSessionInfo"].GetCurrentUserOrganizations();

var result = Resources["CurrentSessionInfo"].GetCurrentUserGroups();

Then depending on the type of usergroup or organization of that particular user in the  service you can check which user will show button or LED widget and return some from it after checking .

Then have a expression widget in mashup and bind the service , and depend on that make output of this expression Widget as Visible or Not Visible

Hope this helps

ak-31
1-Newbie
(To:ak-31)

It seems I like figured it out. It is possible to set up user's permission for every single service or event using "Property, Service or Event Overrides" field.

Other ways mentioned before surely can be very useful in different situations.

Top Tags