Tanzu Hub failed to create organization with UNAUTHENTICATED error
search cancel

Tanzu Hub failed to create organization with UNAUTHENTICATED error

book

Article ID: 433287

calendar_today

Updated On:

Products

VMware Tanzu Platform - Hub

Issue/Introduction

Attempting to create an organisation as outlined in View, create, and manage org and space groups but it fails with: 

Failed to create organization '<Org Name>' in all 1 foundations. Errors: opsmanager.example.com: [Message: UNAUTHENTICATED, Path: [cloudControllerMutation]]

Environment

Tanzu Hub with Internal User Store

Cause

The Tanzu Hub UI user used to create the organization does not exist in TAS UAA

Resolution

Create the user in TAS and assign the relevant scopes.

In this example, the default user tanzu_platform_admin is created on TAS

cf create-user tanzu_platform_admin <password>

Assign the relevant scopes to the user

uaac target <CF UAA>
uaac token client get admin -s <Admin Client password>
uaac member add cloud_controller.admin tanzu_platform_admin
uaac member add uaa.admin tanzu_platform_admin
uaac member add scim.read tanzu_platform_admin
uaac member add scim.write tanzu_platform_admin