Skip to content

CreateUser V3 is missing required parameter #330

Closed
@sebastianappelberg

Description

@sebastianappelberg

I'm getting the following error when calling client.users.createUser using the Version3Client:

HttpException: Request failed with status code 400
....
{
  errorMessages: [ 'You must specify the products that user can access.' ],
  errors: {}
}

Jira announced that they would make the products field mandatory for the createUser endpoint a while back: https://community.atlassian.com/t5/Jira-questions/Create-User-via-API-You-must-specify-the-products/qaq-p/2729963.

There's no way to input the products field using the Version3Client. This is the model definition for the request: https://github.com/MrRefactoring/jira.js/blob/master/src/version3/models/newUserDetails.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions