Python Toolbox - Restricting Tools

345
4
Jump to solution
09-10-2018 07:48 AM
MikeEdwards
New Contributor III

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 Regular Contributor

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 Regular Contributor

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
New Contributor III

Awesome thanks. I'll give those a try.

0 Kudos
MikeEdwards
New Contributor III

Thank you again. This worked.

0 Kudos
RandyBurton
MVP Regular Contributor

Glad it worked out.

0 Kudos