Python Toolbox - Restricting Tools

651
4
Jump to solution
09-10-2018 07:48 AM
MikeEdwards
Occasional Contributor

Hello,

I created a python toolbox that is being rolled out to my entire corporation. There are two tools that should only be accessible by one group in the corporation. I would like to keep everything in one toolbox so I don't have to maintain multiple toolboxes.

Is there a way I can lock down certain tools? I haven't been able to find anything online suggesting you can. Or is my only option is to have different toolboxes containing only the tools people should have access to?

0 Kudos
1 Solution

Accepted Solutions
RandyBurton
MVP Alum

With a python toolbox, perhaps if isLicensed() returns false if os.environ['username'] is not in a list, table or file, you might be able to limit who uses the tool.  Just a thought.

View solution in original post

4 Replies
RandyBurton
MVP Alum

With a python toolbox, perhaps if isLicensed() returns false if os.environ['username'] is not in a list, table or file, you might be able to limit who uses the tool.  Just a thought.

MikeEdwards
Occasional Contributor

Awesome thanks. I'll give those a try.

0 Kudos
MikeEdwards
Occasional Contributor

Thank you again. This worked.

0 Kudos
RandyBurton
MVP Alum

Glad it worked out.

0 Kudos