This article explains how to remove a user as Project Admin for multiple projects using the app Run CLI action for Jira on Datacenter instance.
...
- Consider the following example shows a project key, BUMPTC, that has a role defined as jira-administrators:
- Create a csv file(ex: projectsremove.csv) with below parameters:
- Place the projects.csv under the respective folder, that is /var/atlassian/application-data/home/cli-plugin.
Navigate to Admin > Manage Apps > Run Actions to execute the following CLI action:
Click on Run and below is the required output:
The result of the above action is similar to the following screenshot:
Code Block theme Midnight --action run --server http://example.test.stage --password xxxxxxx --user xxxxxxx --action runFromCsv --file "projectsremove.csv" --common "--action removeProjectRoleActors"
Click on Run and below is the required output:
Code Block theme Midnight Success Run: --action runFromCsv --file "projectsremove.csv" --common "--action addProjectRoleActorsremoveProjectRoleActors" Run: --project "AAAAJIRA" --role "jira-administrators" --userId "Amulya" --category "anotherstandard" --action removeProjectRoleActors 'jira-administrators' role updated for project AAAAJIRA Run: --project "BBBBQA" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors 'jira-administrators' role updated for project BBBB Run: --project "BUGAcategory "standard" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors 'jira-administrators' role updated for project BUGAQA Run: --project "BUMP" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors 'jira-administrators' role updated for project BUMP Run: --project "CCCCTC" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors 'jira-administrators' role updated for project CCCCTC Run: --project "EEEEZJCLI" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors 'jira-administrators' role updated for project EEEEZJCLI Run completed successfully. 65 actions were successful from file: /var/atlassian/application-data/home/cli-plugin/projectsremove.csv Run completed successfully. 1 actions were successful
The result of the above action is similar to the following screenshot:
...
Info |
---|
|