Workflow - loop to validate entitlement for submitted form

I have a form that I want to trigger in a workflow. I don’t know of a way to limit the form to only certain groups, so my thought was to handle it in the workflow.

If the submitted by id is a user that has an entitlement to a given group in AD, then the next steps will be continued, if not, send an email and stop the process.

Is this something that can be done in a workflow? Is there an easier way to prevent certain persons from accessing a form? Currently looking at having the form on the dashboard.

Is the compare operator in the loop able to look at the entitlement? What should I have for the comparison value? Just the name of the entitlement, the ID?

Is there a way to see what the loop is doing and how the data is represented?

After “Get Access”, you can directly use “Verify DataType” where the value would be

$.getAccess.accessItems[?(@.type=='entitlement' && @.id=='IDOfTheEntitlementYouWantToVerify']

and Data Type is “exists”

1 Like

Hi @ts_fpatterson,

By saying " I don’t know of a way to limit the form to only certain groups, so my thought was to handle it in the workflow." do you have a partern or names of thoses that you dont’t want to selected in your form ?

in Seach query of your select field you can exclude thoses entitlements by using Seach query.

Example :

I use query below to exclude all entilements containing “rh” :

NOT name:*rh* 

you can combine complexe query by using and , or as you when searching from search ui or api

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.