Apps Manager UI: Setting space role fails with "Error: Users cannot be assigned roles in a space if they do not have a role in that space's organization"
search cancel

Apps Manager UI: Setting space role fails with "Error: Users cannot be assigned roles in a space if they do not have a role in that space's organization"

book

Article ID: 298401

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

When a user with org role selects a space role in the org in Apps Manager UI, the selection fails with "Error: Users cannot be assigned roles in a space if they do not have a role in that space's organization." 

image.png
For example, the test_user with Org Manager role cannot select any of the space roles, e.g. Space Manager, as shown.

However, the space roles can be set by cf CLI, but not in Apps Manager UI.

Environment

Product Version: 2.13

Resolution

Explanation:
Apps Manager UI does not add the org_user role to the user immediately before adding the user to the space, whereas cf CLI does it.

Permanent-Fix:
The issue has been fixed in below versions:
  • 4.0.5+LTS-T
  • 3.0.14
  • 2.13.24

Temporary-Fix:
As a workaround, the cf CLI "cf set-space-role" continues to work in affected versions.