How to set project admins/leaders

Petya Tsvetanova Petrova February 3, 2013

Hi,

I am trying to set the admins of a project like that:

user.addRole(username, "Administrators");

But the user becomes a developer instead of administrator. What could be the reason?

Cheers,

Petya

1 answer

1 accepted

1 vote
Answer accepted
Pawel Niewiadomski
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 Leaders.
February 4, 2013

It should be called like that: externalUser.addRole(externalProjectId, roleName)

Petya Tsvetanova Petrova February 4, 2013

Yes, thank you! I replaced the user name with the project and it is working now.

Another similar question: how can I not set the person who imports the project to be a leader ot the same project? In my case, not the project leaders will migrate their projects, but other people.

Pawel Niewiadomski
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 Leaders.
February 4, 2013

You need to set the lead user on ExternalProject, then it will be used instead of the currently logged in user.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events