ScriptRunner fields support being rendered as single/multi user picker fields. Issue security schemes can use the values in user picker fields for issue security. However, user picker 'script fields' don't show up as options when configuring security levels.
Is this a limitation of the system, and/or is there some way to make them work?
My end goal was an experiment in having a 'Database picker' custom field to select from project roles (working), and then having a pair of role member fields -- one for users (half working), one for groups (working) -- that would be used by the security scheme (not working), allowing users to make issues visible based on arbitrary combinations of project roles.
Obviously the whole idea might be a dead end if it turns out Jira can't "see" the values of those member fields early enough to determine whether the logged in user is allowed to view the issue, but I haven't gotten far enough in to find out if that dead end is waiting for me. 