Script to access setDatasetEnabled

I created a menu with a tab strip component. I would like to disable some tabs. I found that I can use .setDatasetEnabled to make that.If my tag strip is called TabStripTier what is the correct way to do it? TabStripTier.setDatasetEnabled(“Administrator”, 0) is not working. Thanks for your help.