• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Manage user profile permission

    How-To
    3
    5
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Phillip Weeks
      last edited by

      Is there a way I can prevent a user from seeing or accessing their profile from the UI dropdown?

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by

        Hi Phillip,

        Alas it is not currently possible. But, since this was possible in the old UI, it will likely become possible.

        1 Reply Last reply Reply Quote 0
        • MattFoxM
          MattFox
          last edited by MattFox

          There is a way, but it involves only going as far as hiding the menu item. it doesn't remove the link in it's entirety.
          If that will suffice you will need to make a copy of the ui.main.js from
          /opt/mango/web/modules/mangoUI/web directory into the
          /opt/mango/overrides/web/modules/mangoUI/web What I did to get around it is search for the user menu item and insert into the <md-menu-item> at

          <md-menu-item >\n              <md-button aria-label="{{\'ui.app.userProfile\'|maTr}}" ui-sref="ui.settings.users({username: User.current.username})">\n                <md-icon md-menu-align-target>person</md-icon>\n                <span ma-tr="ui.app.userProfile"></span>\n              </md-button>\n            </md-menu-item>\n 
          

          ng-if="User.current.username==\'admin\'"

          So that only admin can see it.
          Dunno if that answers the question. But sometimes a hack is all you need...
          Would be keen to know Phil's thoughts...

          Do not follow where the path may lead; go instead where there is no path.
          And leave a trail - Muriel Strode

          1 Reply Last reply Reply Quote 1
          • phildunlapP
            phildunlap
            last edited by

            @mattfox said in Manage user profile permission:

            Would be keen to know Phil's thoughts...

            You won't be able to prevent them from using the API to modify themselves, and since the page is ultimately just a wrapper for that, while I like the hack (didn't test it) it would be a bandage, not a fix. But, his question does explicitly ask about only hiding the menu item, so I gotta think you nailed it!

            1 Reply Last reply Reply Quote 1
            • MattFoxM
              MattFox
              last edited by

              Thanks Phil, I use it on my site so I can assure you it works or i'd have serious problems with user permissions all over the place. Indeed it is a bandaid but with the way everything's packed with webpack now. Dev customising becomes a little more... awkward.

              Do not follow where the path may lead; go instead where there is no path.
              And leave a trail - Muriel Strode

              1 Reply Last reply Reply Quote 0
              • First post
                Last post