# VMware vSphere

## vCenter API Access Instructions

Epiphany requires a vSphere user created and assigned appropriate permissions to retrieve the appropriate information.

We’ll need two permissions for collection to work as designed:

1\.     ReadOnly on the vSphere infrastructure

2\.     A dedicated “Modify Permissions” on a single object to allow us to enumerate users and groups

Note: Due to changes in how vSphere handles the ability to enumerate users and groups, this account must be granted “[Modify Permissions](https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-security/GUID-F747882C-55C8-42E7-9066-EBFC3E26C9C8.html)” for at least ONE object within as noted in the VMWare documentation for the [RetrieveUsersandGroups](https://vdc-download.vmware.com/vmwb-repository/dcr-public/8946c1b6-2861-4c12-a45f-f14ae0d3b1b9/a5b8094c-c222-4307-9399-3b606a04af55/vim.UserDirectory.html) API function. The object where these permissions are assigned isn’t required to be real and can be created just for this purpose if desired. The Virtual Machine hosting the on-prem collector can also be used and poses no impact to the environment.

As noted in the VMWare documentation, holding this permission on ANY object allows for enumeration, and it does not have to be applied across all objects.

“You must hold the Authorization.ModifyPermissions privilege to invoke this method. If you hold the privilege on any ManagedEntity, you will have access to user and group information for the server.”

To enable this access, we’ll need 4 things:

1\.     A user account dedicated to the Epiphany Collector

2\.     A role with appropriate Modify Permissions permission assigned

3\.     Read-Only permissions to the vCenter hierarchy

4\.     An object where our user will be assigned the role

From there we can enable the data source within the Epiphany Console using the created user account.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.reveald.com/technical-documentation/data-sources-early-access/vmware-vsphere.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
