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: 

Automatically add a user to a project and a role

bhushan
Contributor
September 26, 2023

Hi Team,

 

When an user is added to Jira using user management then he/she should be automatically added to a project (for eg 'test project') and to a role (for eg 'developers role').

Is there any plugin to perform such activity, please share your suggestions.

 

Thanks,

Bhushan

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Syed Muhammad Umair Mansoor
Contributor
March 9, 2024

Please use this groovy to automate:

projectRoleService.addActorsToProjectRole(reporterUsr, projectRole, projectkey, ProjectRoleActor.USER_ROLE_ACTOR_TYPE, null)
0 votes
Ste Wright
Community Champion
October 8, 2023

Hi @bhushan 

I think it'd be easier to just add the default user access Group to the Project Role in that Project - then all users would get access that way?

Or if it's multiple Projects, add them to a Group during issue creation, and have one Group per Project Role instead.

Would that work? If not, could you provide more detail on your need?

Ste

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events