Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events