Firstly, create a select field,
Next, add the filter code to populate the choices of the $field
Jump on google to find the WP code to get a list of all user roles
Loop through the user roles and append them to the $field[‘choices’]
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users