summaryrefslogtreecommitdiff
path: root/doc/source/command-objects
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <juan.osorio.robles@ericsson.com>2015-05-06 22:46:32 +0300
committerJuan Antonio Osorio Robles <juan.osorio.robles@ericsson.com>2015-05-12 11:48:01 +0300
commit3ca96ef93cda1a3f186febc0e241e2d4adb682eb (patch)
tree5a9301aad8cfb588830c54b9a6767cdc5a556cb5 /doc/source/command-objects
parenta6deef6ef15b6da454d124e792b72e5e9930d27e (diff)
downloadpython-openstackclient-3ca96ef93cda1a3f186febc0e241e2d4adb682eb.tar.gz
Enable specifing domains in "role add"
If users, projects or groups are provided by name, there is a possibility of the existence other users/projects/groups with the same name in other domain. Even though this is not a problem if the actual ID is given instead of a name; this is mostly a usability enhancement. So, three options were added, one for specifying the domain where the user belongs, another one to specify the project's domain, and finally one to specify the group's domain. Change-Id: Iab04b0e04fa75ea5aa3723b8ea42a45f58a6cdb2 Closes-Bug: #1421328
Diffstat (limited to 'doc/source/command-objects')
-rw-r--r--doc/source/command-objects/role.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/source/command-objects/role.rst b/doc/source/command-objects/role.rst
index 02766b03..5fcbe825 100644
--- a/doc/source/command-objects/role.rst
+++ b/doc/source/command-objects/role.rst
@@ -37,6 +37,27 @@ Add role to a user or group in a project or domain
.. versionadded:: 3
+.. option:: --user-domain <user-domain>
+
+ Domain the user belongs to (name or ID).
+ This can be used in case collisions between user names exist.
+
+ .. versionadded:: 3
+
+.. option:: --group-domain <group-domain>
+
+ Domain the group belongs to (name or ID).
+ This can be used in case collisions between group names exist.
+
+ .. versionadded:: 3
+
+.. option:: --project-domain <project-domain>
+
+ Domain the project belongs to (name or ID).
+ This can be used in case collisions between project names exist.
+
+ .. versionadded:: 3
+
.. describe:: <role>
Role to add to `<project>`:`<user>` (name or ID)