Enterprise Server 3.23 is currently available as a release candidate.
Use the REST API to add, invite, and remove collaborators from a repository.