Managing user permissions to organizations and spaces

After you create users, you can grant them permission to access your organizations and spaces.

Before you grant users permissions to an organization or space, take the following actions:

Granting access to an organization

To grant a user access to an organization, run this command:

cf set-org-role <username> <org> <role>

Where <username> is the user name, <org> is the Cloud Foundry organization, and <role> is one of the following roles:

Granting access to a space

Note: You must run the following commands by using Cloud Foundry CLI version 6.13 or earlier.

To grant a user access to a space, run this command:

cf set-space-role <username> <org> <space> <role>

Where <username> is the user name, <org> is the Cloud Foundry organization, and <role> is one of the following roles:

Removing permissions to organizations and spaces

To remove a user's permissions to an organization, run the following command:

cf unset-org-role <username> <org> <role>

To remove a user's permissions to a space, run the following command:

cf unset-space-role <username> <org> <space> <role>