/
How to add a user to a project role using Run CLI Actions in Jira
How to add a user to a project role using Run CLI Actions in Jira
This article explains how to add a user to a project role using the Run CLI Actions in Jira app on server.
Instructions
For this scenario, use the addProjectRoleActors action and userId parameter where:
- addProjectRoleActors: adds users or groups to a project role, and,
- userId: provides the User ID for user management and other actions. For some actions, a comma-separated list of IDs is required.
Ensure that the project role(s) exists on the global level.
- Consider the following example shows a project key, JIRACLI, that has a role defined as jira-software-users:
Navigate to Admin > Manage Apps > Run Actions to execute the following CLI action:
--action addProjectRoleActors --project "JIRACLI" --role "jira-software-users" --userId "Lucas"
The result of the above action is similar to the following screenshot:
Info
- Make sure you have installed the Run CLI action in Jira v9.2 app as the action addProjectRoleActors is compatible with the app from v9.2.
- It is recommended to test this scenario in a test environment before implementing it in production.
Related content
How to add a user to a project role using Jira CLI app
How to add a user to a project role using Jira CLI app
More like this
How to add a user as Project Admin for multiple projects using Run CLI Action for Jira app
How to add a user as Project Admin for multiple projects using Run CLI Action for Jira app
More like this
How to remove a user from a project role for multiple projects using the app, Run CLI Actions in Jira
How to remove a user from a project role for multiple projects using the app, Run CLI Actions in Jira
More like this
How to get the list of users and their roles for all Jira projects using Jira Command Line Interface (CLI)
How to get the list of users and their roles for all Jira projects using Jira Command Line Interface (CLI)
More like this
Manage project role schemes 5.0.8
Manage project role schemes 5.0.8
More like this
Manage project role schemes - 6.0.x
Manage project role schemes - 6.0.x
More like this