Hardening vCenter through GUI fails with "Unauthorized" error message
search cancel

Hardening vCenter through GUI fails with "Unauthorized" error message

book

Article ID: 443125

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Applying STIG/hardening to vCenter via the GUI fails with:

{
    "profile": "COMPATIBLE"
}

Output returned. 

Fix failed with following error:

{
    "error_type": "UNAUTHORIZED",
    "messages": [
        {
            "args": [],
            "default_message": "Unable to authorize user",
            "id": "vapi.security.authorization.invalid"
        }
    ]
}

Environment

vCenter Server 8.x

Cause

Error message can be taken at face value, the account being used does not have sufficient privileges.

Resolution

For applying STIGs or otherwise hardening the vCenter Server application, use the administrator@vsphere.local account.

Additional Information