Share all details related to your problem, including any error messages you may have received.
Could you please provide a complete rule code which takes workgroup names passing through the filter condition as the input and return Workgroup Details like Name, Owner, Description, Group Email, Capabilities, Members, Scope, Notification Setting, Authorized Scopes as the output
We need the feeling that you try to write this rule yourself then we can help you. Read the dokcumentation, watch the Videos and try to code it yourself step by step. At which part of IIQ you want to use this Rule?