Skip to content

Latest commit

 

History

History
67 lines (31 loc) · 3.33 KB

add-space-members-using-the-cloud-foundry-command-line-interface-d23ea8b.md

File metadata and controls

67 lines (31 loc) · 3.33 KB

Add Space Members Using the Cloud Foundry Command Line Interface

You can use the Cloud Foundry Command Line Interface (cf CLI) to add space members and assign roles to them.

Space members are organization members who have specific roles in a space.

Org members can only be added by an Org Manager. This means that if you only have the Space Manager role, you can’t add space members that aren’t known to the org. To do that, you must first ask your Org Manager to add the users as org members with no roles. Once this is done, you can add them as space members following the steps below.

If you’re the Org Manager, you don’t need to first add the users as org members with no roles. Since you have the permissions necessary to add users to the org, when you add a new user as a space member, that user automatically becomes part of the org as well.

Enter the following string, specifying the user name, the name of the organization, the name of the space, and the role:

cf set-space-role USERNAME ORG SPACE ROLE 

To remove a space role from a user, enter the following string, specifying the user name, the name of the organization, the name of the space, and the role:

cf unset-space-role USERNAME ORG SPACE ROLE 

Related Information

Supported Tools and Services When Using Custom Identity Providers for Platform Users

Add Space Members Using the Cockpit