Draft: [SPIKE] Admin API group creation
What does this MR do and why?
Issue: https://gitlab.com/gitlab-org/customers-gitlab-com/-/issues/9433+
We want to be able to enable top level group creation via CustomersDot for the purchase flow, so that Customers can create a group while they are purchasing.
Spike what changes would be needed to allow this.
How to set up and validate locally
- Sign in as a non-admin user
- Visit your access tokens page
- Create an access token for the API
- Run the create request (it should fail)
- Sign out and sign-in as an admin user
- Create an access token for the API
- Re-run the create request (it should succeed)
Create Request
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \
--header "Content-Type: application/json" \
--data '{"path": "test-group", "name": "Test Group" }' \
"http://localhost:3000/api/v4/groups/"
Edited by Josianne Hyson