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

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events