Is there a way to bulk create unique API keys for a group?

I was wondering if we can bulk generate unique API keys for members inside a group then export those somewhere?

It’s not really for technical reasons I am trying to export a unique list to CSV etc then import that as “unique” discount codes for said group on my community. Thanks in advance.