AnsweredAssumed Answered

Restrict Access to Python Add-In Based on Userid

Question asked by cwholmes on May 10, 2018
Latest reply on May 15, 2018 by cwholmes

Hello everyone,

I'm trying to find a way to have a python add-in enabled for specific users. The add-in will be installed in citrix arcmap so by default I'm told it will be accessible to anyone who has access to citrix arcmap.

I was thinking to enable an extension with the addin which would run during startup and do something like:

username = str(getpass.getuser())
if username in('person1','person2'):
   #enable toolbar
   #disable toolbar


The code executes fine (as far as determining who's logged in (although I have yet to test it in citrix)). But no matter what I try I cannot find the right line of code to disable the toolbar. Is it even possible?