Create User via API = You must specify the products

Mark Van Loock June 18, 2024

We have been using ServiceNow to create new users in Jira via an API for a while but something has changed in the last few weeks. The error I'm receiving is shown below. 

I've tried specifying "Product" and "Products" both as string values and as an array, and as per the documentation in the link below, I've tried every name of product I can think of. Nothing has so far worked.

Can anyone provide any pointers please.

 

 

{
    "Action Status": {
        "code": 1,
        "message": "Error:  You must specify the products that user can access. (Process Automation.5048af621bbe46105d9aa860f54bcbd4; line 4)"
    }
}

 

https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-user-post

 

 

1 answer

0 votes
Andras M_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 21, 2024

Hey @Mark Van Loock

As of May 9th 2024 the products field has become mandatory when creating users (see changelog and the deprecation notice for more information).

 

Valid product name for the products field: jira-core, jira-servicedesk, jira-product-discovery and jira-software. To create a user without product access, set this field to be an empty array.

You will need to update your payload by adding the products field. If you do not intend to give product access to the user, leave it as a blank array. Please see below for an example payload:

 

{
"emailAddress": "testuser@example.com",
"products": []
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events