How to add browse project permission to active users using Jira Command Line Interface (CLI)

This article explains how to add the browse project permission to the active users for permissions schemes using the Jira Command Line Interface (CLI) app.

Instructions

Use the runFromPermissionSchemeList and addPermission actions to add browse project permission to the active users. Refer to the sample command as follows:

--action runFromPermissionSchemeList --common " --action addPermission --permissionScheme  \""@scheme@"\" --permission \"Browse Projects\" --type \"Application Access\" --value "Any" " --continue

In the above action:

  • --permissionScheme value refers to the permission scheme name in Jira.
  • --permission value refers to the permission name of setting permission.
  • --type value refers to the application access for instance.
  • --value refers to the value for application access.
  • Additionally, --continue can be used to ignore the existing errors.
It is recommended to test the commands in a non-production environment, or run the action with --simulate parameter to verify the behavior before deploying.