Problem statement
This article helps you to fix the remote Remote error (mentioned in the next section) while adding a user to a group.
...
Example:
Code Block theme Midnight --action addUserToGroup --autoGroup --continue --userId "automation" --group "development"
In this example, the userId is case sensitive.
If the userId is different from the one that already exists, you see the following remote error:
Code Block theme Midnight --action addUserToGroup --autoGroup --continue --userId "Automation" --group "development" Remote error: You cannot add users to groups which are not visible to you.
If the userId is different from the one that already exists, you see the following remote error:
Code Block theme Midnight --action addUserToGroup --autoGroup --continue --userId "Automation" --group "development" Remote error: You cannot add users to groups which are not visible to you.
- To find the intended user or group you can search for users and groups with the CLI.
Find users using a fragment of their name, email, etc or a regular expression (regex). In this example we search for the automation user with or without the first letter capitalized:
Code Block theme Midnight --action getUserList --name "@all" --regex "[aA]utomation"
Find groups using a fragment of the group name "development" via a regular expression (regex):
Code Block theme Midnight --action getGroupList --regex ".*dev.*"
- Use preserveCase
Use the parameter: preserveCase in the command to override the default behavior and preserve the case.
,
Example: In some actions like addUserand addGroup, by default the environment
by defaultchecks for the text in lower case
letters(like automation instead of Automation). By
providing theusing --
preserveCase topreserveCase parameter in the command, CLI
will createcreates/
checkchecks for the users based on the input.
Code Block theme Midnight --action addUserToGroup --autoGroup --continue --userId "automation" --group "development" --preserveCase
...