Update Jira-user's information

Hi!

I have a problem with updating usrers in Jira 4.1.1. It's necessary to change FullName and Email attributes by connecting from sided system using PowerShell or SQL-scripts. In first case I try to use API, but methods .SetEmail() and .SetFullname() of RemouteUser class, but it failed. Then I try to change attributes directly in sql table but changes appeared in UI only after restart of service becourse of cache.

So, there is two questions:

1) How can I call metods of API by using Windows Powershall?

2) How can I remove cache on request? Or remove it according to schedule?

Thanks in advance.

2 answers

0 vote

First, forget SQL, you will break Jira. (It will work if you have Jira offline, but isn't safe while it's running)

So, going back to the correct way to do this, you need to start by telling us what type of user directories you are using? Internal, LDAP, Crowd, something else?

As I know, in version 4.1.1 there isn't such term as "type of user directories", maybe I'm wrong.

We only use LDAP authentication and during installation I've chosen external oracle database as storage.

Ok, yes, 4.1 does do directories, but only one (so it's internal or LDAP, or Crowd, or whatever)

You're on LDAP, so I suspect you're actually looking in the wrong place - you should be adjusting those details in your LDAP system, not Jira

No, we only use LDAP authentication (only password-checking) like it's described in the article . We use Oracle Db as a storege, maybe in your terminology it is internal type.

No, we only use LDAP authentication (only password-checking) like it's described in the article . We use Oracle Db as a storege, maybe in your terminology it is internal type.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

205 views 2 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you