3 Replies Latest reply on Jun 28, 2016 4:01 AM by ak-3 RSS
    ak-3 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?

      • Re: Levels of access for members
        aanjan Heavyweight Champ

        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.

        • Re: Levels of access for members
          nkhose Creator

          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

          • Re: Levels of access for members
            ak-3 Newbie

            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.