Skip to content

Add initial API for Duo Pro bulk assign

Mohamed Hamda requested to merge 415586-bulk-assign-api into master

What does this MR do and why?

This MR:

  • Add API for Duo Pro bulk assign
  • Add the GQL API and mutation

Mutation Example:

mutation {
  userAddOnAssignmentBulkCreate(
    input: {userIds: ["gid://gitlab/User/1"], addOnPurchaseId: "gid://gitlab/GitlabSubscriptions::AddOnPurchase/6"}
  ) {
    addOnPurchase {
      id
    }
    users {
      edges {
        node {
          id
          name
          username
        }
      }
    }
    errors
  }
}

Response types:

NOT_ENOUGH_SEATS

Screenshot_2024-03-13_at_14.06.33

INVAILD_USER_ID_PRESENT

Screenshot_2024-03-13_at_14.07.45

Success

Screenshot_2024-03-13_at_14.33.51

Related to #415586

Edited by Mohamed Hamda

Merge request reports

Loading