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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events