The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Insight User Attribute

Steve Cocks
Contributor
May 18, 2021

Hi

We have an object that contains an Attribute that is of the type User

We set this attribute using the REST API and we get the following error

[[errorMessages:[], errors:[rlabs-insight-attribute-372:User(s) (p950wes) not found in Jira]]]

The user p950ews is a valid user and has access to JIRA.

Question I have is where does Insight get the list of AD groups to check the value of this attribute? When we look at the Insight UI we get a list of 10 AD groups but none of these contain the user we are failing to set. We see this error with a number of users. 

So where is this list of AD groups taken from and how is it configured?

/Steve

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 27, 2021

I don't think insight looks at AD groups ... it look at Jira groups.

But reading the documentation: https://insight-javadoc.riada.io/insight-javadoc-8.6/insight-rest/#object__id__put

The API expects the User's userKey ... not the user's username.

The key is something like JIRAUSER12345 in recent jira versions (they used to be the same).

You might need to call the /rest/api/2/user?username=p950wes to get the correct key

Steve Cocks
Contributor
May 27, 2021

Thanks i will try this

DEPLOYMENT TYPE
SERVER
VERSION
8.16
TAGS
AUG Leaders

Atlassian Community Events