Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Insight User Attribute

Steve Cocks 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

0 votes
Answer accepted
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 May 27, 2021

Thanks i will try this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.16
TAGS
AUG Leaders

Atlassian Community Events