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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

occurrences of JIRAUSERxxxxx in projectroleactor table Edited

When drawing a table of the user roles of a certain company, I used postgresql to look it up:


SELECT
   c.display_name,p.pname
FROM
   project p, projectroleactor r, cwd_user c
WHERE
   p.id=r.pid and r.roletypeparameter=c.user_name
AND
  c.lower_email_address  ilike '%company%'
ORDER by p.pname

Normally it should yield a certain amount of users but there were too few rows.
When digging into the projectroleactor table there were about some 100 rows with JIRAUSERxxxxx:

SELECT *
FROM
  projectroleactor
WHERE
  roletypeparameter ilike '%JIRAUSER%' or roletypeparameter ilike '%company%'

 

50054;13660;10450;"atlassian-user-role-actor";"JIRAUSER21101"
50055;13660;10450;"atlassian-user-role-actor";"john.smith@company.com"
50059;13660;10000;"atlassian-user-role-actor";"JIRAUSER21104"
50178;11489;10000;"atlassian-user-role-actor";"JIRAUSER20002"
50272;16560;10010;"atlassian-user-role-actor";"JIRAUSER20002"
50320;16460;10030;"atlassian-user-role-actor";"JIRAUSER20001"
50382;13161;10000;"atlassian-user-role-actor";"JIRAUSER21315"
50536;13161;10000;"atlassian-user-role-actor";"JIRAUSER21321"
50542;16660;10010;"atlassian-user-role-actor";"JIRAUSER21308"
50551;16660;10010;"atlassian-user-role-actor";"JIRAUSER21304"
50559;16660;10551;"atlassian-user-role-actor";"JIRAUSER21306"

Apparently this is because of username renaming.
Can't find the link with cwd_user though.
In which table is this stored?

2 answers

See this post.
Apparently this is because of username renaming.
Can't find the link with cwd_user though.
In which table is this stored?

Hi @Herbert De Jonghe 

The APP_USER table describes the relationship between userkey and username.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

How to log work and track time in Jira when a person is part of multiple teams

  The manager’s daily activities include a list of challenges to reach high levels of efficiency for their teams. Part of these challenges is related to how to deal with the worklog systems sin...

117 views 2 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you