User selection component with autocompletion

Hi everyone,

Is there any API, component or something I could use to add user autocompletion into my plugin? I need functionality similar to that of Assignee field when creating/editing an issue. The original component is making use of https://bitbucket.org/xhr/mentions/repositories/inikolaev/bitbucket-kanban-board/issues?term= endpoint, but I can’t use it due to CORS restrictions.

I could find APIs to get a list of members in a team, but what about an individual repository?

Regards,
Igor

Hi Igor,

Your best bet is this API: https://developer.atlassian.com/bitbucket/api/2/reference/resource/teams/{username}/permissions/repositories/{repo_slug}

Even though it says “teams” it works for user accounts as well. This gives you a list of effective repository permissions for a given repository.

Thank you very much! That looks exactly what I need!