Problem Statement
This article helps you to deal with the remote error (mentioned below) while adding a user to a group.
Error Message
Remote error: You cannot add users to groups which are not visible to you.
Environment
Application | Jira |
---|---|
App | Jira Command Line Interface (JCLI) |
Solution
Check for the below cases to identify and resolve the issue:
- Group names are case sensitive. If the group names from the CSV file do not match with the group names in the Jira instance, you may see this error. Check if the group names are exactly matching.
Example:
--action addUserToGroup --autoGroup --continue --userId "automation" --group "development"
- We can see in the above example, the userId is given as case sensitive.
If the userId is different from the one that exists, you will be seeing the below remote error:
--action addUserToGroup --autoGroup --continue --userId "Automation" --group "development" Remote error: You cannot add users to groups which are not visible to you.
Make sure the provided information in the command is as per the userId and group name in the Jira environment.