From 45a4089b4bb93fe6bc6ff8233720ef6cfb47dfe1 Mon Sep 17 00:00:00 2001
From: Greg Cobb
-If you are not an admin, you see this message when you try to run these commands:
-
- The above command returns output similar to the example below:
-
- Getting users in org example-org as username@example.com...
-
- ORG MANAGER
- username@example.com
-
- BILLING MANAGER
- huey@example.com
- dewey@example.com
-
- ORG AUDITOR
- louie@example.com
-
- * To list space users, run:
-
- ```
- cf space-users ORG SPACE
- ```
- Where:
-
-
-
- The above command returns output similar to the example below:
- ORG is the name of the org that contains the space for which you want to see the list of users.SPACE is the name of the space for which you want to see the list of users.
- Getting users in org example-org / space example-space as username@example.com...
-
- SPACE MANAGER
- username@example.com
-
- SPACE DEVELOPER
- huey@example.com
- dewey@example.com
-
- SPACE AUDITOR
- louie@example.com
-
-
-For more information about the `cf org-users` command, use `cf org-users --help`. For
-more information about the `cf space-users` command, use `cf space-users --help`.
-
-### Manage roles
-
-You use the commands listed below to manage roles in the cf CLI. These commands require admin permissions and take `username`, `org` or `space`, and `role` as
-arguments:
-
-* `cf set-org-role`
For more information, use `cf set-org-role --help`.
-
-* `cf unset-org-role`
For more information, use `cf unset-org-role --help`.
-
-* `cf set-space-role`
For more information, use `cf set-space-role --help`.
-
-* `cf unset-space-role`
For more information, use `cf unset-space-role --help`.
-
-The available roles are:
-
-* `OrgManager`
-* `BillingManager`
-* `OrgAuditor`
-* `SpaceManager`
-* `SpaceDeveloper`
-* `SpaceAuditor`
-
-For more information about user roles, see [Orgs, Spaces, Roles, and Permissions](../concepts/roles.html).
-
-The following example shows the terminal output for `cf set-org-role huey@example.com example-org OrgManager`, which assigns the Org Manager role to
-`huey@example.com` within the `example-org` org:
+The following example assigns the Org Manager role to `huey@example.com` in `example-org`:
+$ cf set-org-role huey@example.com example-org OrgManager
Assigning role OrgManager to user huey@example.com in org example-org as username@example.com...
OK
error code: 10003, message: You
-are not authorized to perform the requested actionThe user exists in multiple origins. Specify an origin for the requested user from: ‘uaa’, ‘other’
-
-To resolve this ambiguity, you can construct a `curl` command that uses the API to perform the desired role management function. For an example, see the
-[Cloud Foundry API documentation](https://v3-apidocs.cloudfoundry.org/version/3.169.0/index.html#create-a-role).
+If you are not an admin, you see this message when you try to run these commands: error code: 10003, message: You are not authorized to perform the requested action