Platform

Platform

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

 View Only
  • 1.  Tab Visibility - users with multiple roles

    Posted Fri May 15, 2020 05:29 PM

    I am using the following to allow a tab on a report to be enabled for only those users who have a role of Admin:

     

    To make tabs conditionally enabled or hidden based on the user's role, use the following IF statement:

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

     

    However, some users have multiple roles and their default role is not Admin.  Therefore, the tab is disabled for them even though they do have the Admin role.   Is there a way to allow the tab to be visible for everyone that has an available role of Admin and not just for those users whose default role is Admin?

     

    Thank you!
    Jeanne



    #TBMStudio


  • 2.  Re: Tab Visibility - users with multiple roles

    Posted Sun May 17, 2020 07:55 PM

    Jeanne Grzelak,
    Whilst I do not have an answer for your question, I'd like to understand the benefit of having multiple roles to a user. How do those users choose between the roles they've been assigned?  ... do they get to select a specific role at login? ... can they toggle between the different roles or do they need to logout and then re-login to select a different role? ... I'm keen as we have a use-case where this may come handy. 


    #TBMStudio


  • 3.  Re: Tab Visibility - users with multiple roles

    Posted Tue May 19, 2020 06:10 PM

    Hi JJ,

     

    Here is a scenario (different than my original post) that we have that requires multiple roles:

     

    I have a certain tab on a report that for security reasons should only be viewed by certain users.  These users are assigned different roles - some are admins, some are executive users, etc.  I created a new "sensitive data" role and assigned these certain users to this role (in addition to their other roles).  Using the {$CurrentUser}:{Users.Role}, I want to allow visibility to the report tab only to those users who have been assigned the "sensitive data" role. Unfortunately, it seems that this function is only looking at one role and not all the roles to which a user is assigned.  I was hoping that this function would look at all of the roles assigned to a user. 

     

    Under My Preferences, a user can choose to Change Current Role, and in the dropdown a list of all the user's role will display.  But even when I change the role, the tab doesn't display.

     

    Thank you!
    Jeanne 


    #TBMStudio


  • 4.  RE: Re: Tab Visibility - users with multiple roles

    Posted Fri February 18, 2022 12:17 AM
    For companies using IT Planning and Cost Transparency, I regularly use and have see other companies use at least two roles for a person given access to both applications...one specific to IT Planning and the other specific to Cost Transparency.

    To work-around the multiple role issue, I create a new role where the other roles' permissions are consolidated into. Then, I assign the new role to the person/people. No more problem. :-)

    ------------------------------
    Matt Temple
    Advocate
    matt.temple@advocateinsiders.com
    ------------------------------



  • 5.  RE: Re: Tab Visibility - users with multiple roles

    Posted Mon February 21, 2022 02:00 AM
    Easy does it, @Matt Temple!​

    ------------------------------
    Regards, Guillermo
    ------------------------------