Page 1 of 1

Restrict Visibility by Profile

Posted: Mon May 06, 2019 10:42 am
by kendale.wyatt
Is it possible to restrict document visibility by profile without having to create a new document tree?

Re: Restrict Visibility by Profile

Posted: Tue May 07, 2019 10:12 am
by BobRichards
I'm not sure what you mean. Visibility conditions can be added to individual ReadyDocs as well as ReadyDoc Tree folders. You are free to create any logic condition in the Visibility Condition you want. If you need to incorporate the order's ownership profile's full path in the logic, it is available at "Order.OwnershipProfile.Path".

Code: Select all

# Only show when the Profile begins with Default\Titan Settlement Services\Southeast
path = Order.OwnershipProfile.Path
return path.lstrip().startswith('Default\\Titan Settlement Services\\Southeast’
Notice that you need to double the backslashes inside of Python single or double quotes since a backslash has a special meaning: Backslash (escape) sequences.