Updated roles autocomplete to use the API