Allow option to configure default project_owner when creating projects through API key
We're currently using the Atlas Service Broker (https://github.com/mongodb/atlas-osb) which is built using the native Atlas REST APIs.
In the project creation, it creates the project using the POST /api/atlas/v1.0/groups endpoint via an API key. As a result, we have an unexpected user added as the project_owner of the project.
THis is due to:
IMPORTANT
To create a project using API Key credentials, you must specify an orgId. When you do, Atlas automatically selects the Owner of the specified organization with the earliest account creation date and time as the Project Owner for the newly created project.
The API should be expanded to allow for a user to be configured as the default project owner, or the project should not require a default project_owner at all when it is created via an API.
![](https://secure.gravatar.com/avatar/3beb0c6fd749010d3602b5b0826e1c0a?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Jason commented
Another concern is that an additional project owner could be added via the Atlas Console. This would provide access to the account as defined in the user section of project access management but would not be captured in any associated source control management.
-
Jason commented
Although this seems like an alright feature for a default Project Owner but if we are creating projects using an API key via Terraform the person creating the project may not be an organization owner or even associated with the project. Assigning ownership via the Terraform provider would clearly designate who the owner is to people who may not have Atlas access.
-
MATTHIEU commented
This is important for us too.
Actually the default user is someone that should not be in every projects, so we have to manually remove him and remplace him with the right person.