Get User Using GET 1

Get User Using GET 1

Get the information of a user.

Pre-authorized roles: Administrator

Request
URI
GET
https://{api_host}//vcp.vmware.com/api/provider/v1/users/{userId}
COPY
Path Parameters
string
userId
Required

User id

userId example
8dec8aaa-xxxx-xxxx-xxxx-760aa839aeb3b

Responses
200

OK

Returns User of type(s) application/json
{
    "id": "8dec8aaa-xxxx-xxxx-xxxx-760aa839aeb3",
    "firstName": "James",
    "lastName": "Smith",
    "email": "jamessmith@testcorp.com",
    "status": "ACTIVE",
    "roles": [
        {
            "id": "81d7de9d-xxxx-xxxx-xxxx-64eea06d3ef1",
            "name": "Administrator"
        }
    ]
}
string
id
Optional

id

string
firstName
Optional

firstName

string
lastName
Optional

lastName

string
email
Optional

email

string
status
Optional

status

array of Role
roles
Optional

roles


400

Bad Request

Operation doesn't return any data structure

401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

404

User not found

Operation doesn't return any data structure