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)" } }
@Andras M_ Thanks for the solution, I had the same issue for adding users to a group. Would it be possible to update your documentation?
Cheers
Hey @Adam Wordsworth
Could you share the an example of the payload that triggered the issue on the endpoint you've shared and the payload that fixed it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
andjira-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": []
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.