How to add many collaborators at the same time?

How to add many collaborators at the same time?

How can I add many collaborators and their rule at the same time?
By uploading a text file, or importing the collaborators list from another project etc.
Thanks!