How can I 'hide' a tab in Spotfire depending on the current user in IronPython?
Question: I have a tab that contains a visualizations for data validation and testing.
I'd like to leave that tab in there without showing to anyone but the devs.

I can get the current user this way but can't find how to 'hide' the tab.

    
    
    from System.Threading import Thread 
    print Thread.CurrentPrincipal.Identity.Name 
    


Answer: I'm quite sure that hiding a tab is not possible. there are some other
possible solutions, though.

  1. change the navigation style from **Titled Tabs** to **History Tabs** , then handle navigation between pages with a textarea that is populated by your script. it's the simplest solution, but if you have super sensitive data in this analysis AND your users are accessing via the Analyst client, then a user could change the navigation style.
  2. based on the user group, write a script that creates any pages with visualizations on the fly. this one is also at risk to users with Analyst plus scripting access, and is significantly more work to create and maintain (but also really cool and fun, if you like scripting!).
  3. make a different analysis per "user group". probably not the best solution since you'd need to repeat any updates for each analysis. this gives you the most security but I think at the highest long-term cost (assuming that the analyses will change over time).

