Cannot login Platform UI with CloudPak administrator username
You might not be able to login Platform UI with the updated CloudPak administrator username in foundational services v4.6.4.
Symptoms
Error 401 is displayed on screen.
Workaround
Onnboard the CloudPak administrator username (cpadmin) to Platform UI 4.8.x:
-
Obtain the default Platform UI admin password.
oc get secret admin-user-details -o json | jq -r '.data.initial_admin_password' | base64 -d && echo
-
Obtain Platform UI access token for default Platform UI
admin
.POST: https://<zen_instance_url>/icp4d-api/v1/authorize { "username": "admin", "password": "<zen-admin-password>" }
Where, zen-admin-password is the default Platform UI admin password that has been generated in Step 1.
For more information, see Using Authorization: ZenApiKey token.
-
Add
cpadmin
to Platform UI with the bearer token that has been generated in Step 2.POST https://<zen_instance_url>/usermgmt/v1/user { "username": "cpadmin", "displayName": "cpadmin", "user_roles": "['zen_administrator_role']" }
cpadmin
is now onboarded to Platform UI 4.8.x and can perform Platform UI administrative actions.