Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Problem statement

This article helps to you fix the Remote remote error (mentioned in the next section) you may encounter while adding a user to a group in Jira.

Error message 

Code Block
themeMidnight
Remote error: You cannot add users to groups which are not visible to you.

Environment

ApplicationJira
App Jira Command Line Interface (JCLI)

Solution

  1. Look for the scenarios mentioned in this section to identify and resolve the error.   Make Make sure the information provided information in the command is the same as the userId and group name in the Jira environment.
    1. Group names are case sensitive. If the group name

      supplied

      provided does not match

      a

      the group name in the Jira instance, you may see this error. Check if the group name matches.

...

    1. Example:

      Code Block
      themeMidnight
      --action addUserToGroup --autoGroup --continue --userId "automation" --group "development"

      In this example,

  1. the
    1. the userId is case sensitive.

    2. If the userId is different from the one that already exists, you see the following remote error:

      Code Block
      themeMidnight
      --action addUserToGroup --autoGroup --continue --userId "Automation" --group "development"
      Remote error: You cannot add users to groups which are not visible to you.
  2. If the userId is different from the one that already exists, you see the following remote error:

    Code Block
    themeMidnight
    --action addUserToGroup --autoGroup --continue --userId "Automation" --group "development"
    Remote error: You cannot add users to groups which are not visible to you.

  1. To find the intended user or group you can search for users and groups with the using CLI.
    1. Find users using a fragment of their name, email, etc or a regular expression (regex).  In this example we the search is for the automation user with or without the first letter capitalized:

      Code Block
      themeMidnight
      --action getUserList --name "@all" --regex "[aA]utomation"


    2. Find groups using a fragment of the group name "development" via a regular expression (regex):

      Code Block
      themeMidnight
      --action getGroupList --regex ".*dev.*"


  2. Use the parameter: preserveCase in the command to override the default behavior behaviour and preserve the case.
    Example: In some actions like addUser and addGroup, by default the environment checks for the text in lower case (like automation instead of Automation). By using --preserveCase parameter in the command, CLI creates/checks for the users based on the input.

    Code Block
    themeMidnight
    --action addUserToGroup --autoGroup --continue --userId "automationAutomation" --group "development" --preserveCase


    Code Block
    themeMidnight
    --action getUserList --name "Automation" --preserveCase