Managed Object - UserDirectory(vim.UserDirectory)

Property of
HostConfigManager, ServiceContent
See also
UserSearchResult
Since
2.0


Managed Object Description

The UserDirectory managed object provides information about users and groups on a vSphere server and ESX hosts. The method RetrieveUserGroups returns a list of user account data. The method can perform a search operation based on specific criteria - user name, group name, sub-string or string matching, and, on Windows, domain. Use the results as input to the AuthorizationManager methods SetEntityPermissions and ResetEntityPermissions.

The content of the returned results depends on the server environment:

Properties

Name Type Description
domainList* Pxsd:string[]

List of Windows domains available for user searches, if the underlying system supports windows domain membership.
*May not be presentP Required privilege: System.View

Methods

Methods defined in this Managed Object
RetrieveUserGroups

RetrieveUserGroups(retrieveUserGroups)

Returns a list of UserSearchResult objects describing the users and groups defined for the server.

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.

Required Privileges
None

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the UserDirectory used to make the method call.
domain* Pxsd:string

Domain to be searched. If not set, then the method searches the local machine.

Since 2.0
searchStr Pxsd:string

Case insensitive substring used to filter results; the search string is compared to the login and full name for users, and the name and description for groups. Leave this blank to match all users.

Since 2.0
belongsToGroup* Pxsd:string

If present, the returned list contains only users or groups that directly belong to the specified group. Users or groups that have indirect membership will not be included in the list.

Since 2.0
belongsToUser* Pxsd:string

If present, the returned list contains only groups that directly contain the specified user. Groups that indirectly contain the user will not be included in the list.

Since 2.0
exactMatch Pxsd:boolean

Indicates the searchStr passed should match a user or group name exactly.

Since 2.0
findUsers Pxsd:boolean

True, if users should be included in the result.

Since 2.0
findGroups Pxsd:boolean

True, if groups should be included in the result.

Since 2.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
UserSearchResult[]

Faults

Type Description
NotFoundThrown if any of the domain, belongsToGroup, or belongsToUser arguments refer to entities that do not exist.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition