This article explains how to remove a user as a Project Admin for multiple projects using the app, Run CLI Actions in Jira, on a datacenter instance.
...
- Consider the following example which shows a project key, TC, and has a role defined as jira-administrators:
- Create a csv file(ex: removeprojects.csv) with the below parameters:
- Place the projects.csv under the relevant folder, that is /var/atlassian/application-data/home/cli-plugin.
Navigate to Admin > Manage Apps > Run Actions to execute the following CLI action:
Code Block theme Midnight --action run --server http://example.test.stage --password xxxxxxx --user xxxxxxx --action runFromCsv --file "remove.csv" --common "--action removeProjectRoleActors"
Click on Run and below is the required output:
Code Block theme Midnight Run: --action runFromCsv --file "remove.csv" --common "--action removeProjectRoleActors" Run: --project "JIRA" --role "jira-administrators" --userId "Amulya" --category "standard" --action removeProjectRoleActors 'jira-administrators' role updated for project JIRA Run: --project "QA" --role "jira-administrators" --userId "Amulya" --category "standard" --action removeProjectRoleActors 'jira-administrators' role updated for project QA Run: --project "BUMP" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors 'jira-administrators' role updated for project BUMP Run: --project "TC" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors 'jira-administrators' role updated for project TC Run: --project "ZJCLI" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors 'jira-administrators' role updated for project ZJCLI Run completed successfully. 5 actions were successful from file: /var/atlassian/application-data/home/cli-plugin/remove.csv Run completed successfully. 1 actions were successful
The result of the above actions is shown in the following screenshot:
Info |
---|
|
...