Bulk-Invite user accounts via CLI using CSV or JSON files #320
Labels
No labels
bug
chore
documentation
enhancement
help
in-progress
question
ready-for-release
released
translation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
adam/gate#320
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe your idea for an enhancement:
Hi! I'd like to be able to create bulk invitations for users/emails.
Ideally, this would be a CLI command that I could run, that either lets me invite a single user, or a number of them via a CSV.
Second level of ideal would be if I could also seed a temporary password for them in the command, but that's less critical.
Use case is in the "Additional Context" section.
Describe alternatives you've considered:
The main workaround that I can see that currently exists would be having a template database instance that already has my users seeded, but it doesn't make for easy one-off invites, or simple variations.
Additional context:
My use case is as follows:
I'm developing an app that has an existing, but kinda un-mockable, OAuth2 IDP for production.
However, I use ephemeral, short-lived test environments to run test cases.
Some of those test cases do involve having "users that already exist" set up already (even if they need to force a password change).
Ideally, I'd like to be able to have a CSV or some other similar data store that can hold a series of "known existing" accounts, so the user store isn't completely empty after the first startup of the environment, and I can run test cases against those accounts.
Even just a CLI command that I can run in batch without interacting with the FE of the app would be handy?
The other options I've looked at for this are things like running Keycloak and importing realms from JSON at startup (but it's so bulky for what I need) or even setting up an AWS Cognito user pool as an OAuth2 provider, and potentially manually importing users from a CSV.
However, Cognito lacks some basic functionality like being able to change my email address from their default managed UI.
Warmest <3
Although I realise there's decent odds I could also just analyse the Admin BE API and sort of cheese that if I am really in a pinch...
I may also try that, but this would be nice too?