keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
824 stars 53 forks source link

Add a way for global admins to create isolated admins #714

Closed ezekg closed 1 year ago

ezekg commented 1 year ago

Currently, there's no way to create an isolated admin outside of a console session:

https://github.com/keygen-sh/keygen-api/blob/fdab6a4e4d27f3019ab928fb35d321b472896a8b/features/api/v1/users/create.feature#L528-L564

*face palm*

ezekg commented 1 year ago

How about we add an embedded admins relationship to the create environments endpoint, similar to what we do for accounts?