IBM Apptio

Apptio

A place for Apptio product users to learn, connect, share and grow together.


#Aspera
#Apptio
#Automation
 View Only
  • 1.  Tabbed group visiblity based on user role

    Posted Wed July 15, 2015 02:34 PM

    I feel like this should be pretty simple to do, but I can't get it to work.  I have a tabbed group on my reporting surface, and I want certain tabs to be visible to only people in certain roles.  So, in Edit mode, I go to the Tab group in the ribbon:

    When I click on Visibility, I get a list of the tab names where I can enter hidden, enabled, or disabled.  Or I can use an If statement that evaluates to one of these values.  For example, I enter:

     

    <%=If(CurrentUser:Users.Role="Admin","enabled","hidden")%>

     

    I expect this to make the tab visible to only Admins, but it doesn't.  Probably something in my syntax.




    #CostingStandard(CT-Foundation)


  • 2.  Re: Tabbed group visiblity based on user role
    Best Answer

    Posted Wed July 15, 2015 03:20 PM

    Try this...

    <%=If(eval("=$CurrentUser:Users.Role")="Admin","enabled","hidden")%>


    #CostingStandard(CT-Foundation)


  • 3.  Re: Tabbed group visiblity based on user role

    Posted Wed July 15, 2015 03:24 PM

    Yep, that did it.  Thanks, Matt!


    #CostingStandard(CT-Foundation)


  • 4.  Re: Tabbed group visiblity based on user role

    Posted Thu December 10, 2015 05:29 PM

    Ok feeling not so smart today!  The code Matt provided works great - thank you very much.  But the tabs that I entered enabled on do not.  What am I doing wrong!


    #CostingStandard(CT-Foundation)


  • 5.  Re: Tabbed group visiblity based on user role

    Posted Thu December 10, 2015 06:30 PM

    Would you mind posting a screenshot of the Visibility settings you have for the tabs being referenced?

     

    Meanwhile you can also try this snippet out which returns a blank value instead of "enabled":

    <%=If(eval("=$CurrentUser:Users.Role")="Admin","","hidden")%>

     

    Something like this, but with the text you're trying out...

    12-10-2015 3-28-24 PM.jpg


    #CostingStandard(CT-Foundation)


  • 6.  Re: Tabbed group visiblity based on user role

    Posted Thu December 10, 2015 06:36 PM


  • 7.  Re: Tabbed group visiblity based on user role

    Posted Thu December 10, 2015 06:45 PM

    Remove the "enabled" text (without quotes) from tabs you don't need any special settings for.

     

    If still having a problem after the above change, please copy the contents of your Labor Roster visibility setting's value into another response.


    #CostingStandard(CT-Foundation)


  • 8.  Re: Tabbed group visiblity based on user role

    Posted Thu December 10, 2015 09:13 PM

    That worked.  I changed with report visibility settings to "dynamic text does not evaluate to hidden".  Thank you for your help!


    #CostingStandard(CT-Foundation)


  • 9.  Re: Tabbed group visiblity based on user role

    Posted Tue May 28, 2019 10:11 AM

    Does anyone know if this works with custom roles?


    #CostingStandard(CT-Foundation)