07-03-2012 04:42 AM
Following the "One step validation workflow tutorial", i created a custom permission and i'm using it to retrieve the users for a Workflow.CreateTask operation. Everything is working fine, except the "everything" permission being given to administrators includes my custom permission, so that a task is created for administrators.
How can i get rid of the administrators in the user list ?
07-03-2012 08:49 AM
Did it with RunScript :
assigned = Document.GetUsersAndGroups("my_permission")
name_administrators = Document.GetUsersAndGroups("Everything")
foreach ( name_administrator : Context["name_administrators"])
{
if( Context["assigned"].indexOf(name_administrator) >= 0 )
{
Context["assigned"].remove(Context["assigned"].indexOf(name_administrator));
}
}
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.