Skip to content

Draft: [SPIKE] Admin API group creation

Josianne Hyson requested to merge jh/enable_cdot_group_creation into master

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

  1. Sign in as a non-admin user
  2. Visit your access tokens page
  3. Create an access token for the API
  4. Run the create request (it should fail)
  5. Sign out and sign-in as an admin user
  6. Create an access token for the API
  7. 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

Merge request reports