Managing external identities to enable secure access for partners, customers, and other non-employees
Make sure you have the right perms, otherwise it will be greyed out
Per that doc:
In order to bulk create users in the administration portal, you must be signed in as a Global administrator or User administrator.