Discuss this help topic in SecureBlackbox Forum
WebDAV: Search for a principal (user)
First of all you need to retrieve a set of searchable properties. You can search for a principal using their properties using the operation defined in RFC 3744 (section 9.4). TElWebDAVClient.PrincipalPropertySearchFirst(), TElWebDAVClient.PrincipalPropertySearchNext() and TElWebDAVClient.PrincipalPropertySearchClose() methods are used to perform the search.
First of all you should call TElWebDAVClient.PrincipalPropertySearchFirst() to perform the request and get properties values for the 1st user from a search result. The method accept a few parameters:
The method returns a search handle via its Ctx parameter. This handle should be passed to subsequent TElWebDAVClient.PrincipalPropertySearchNext* method calls.
TElWebDAVClient.PrincipalPropertySearchNext() should be called until it returns 'false'. Each call returns values for requested properties for a single principal.
After all results are processed TElWebDAVClient.PrincipalPropertySearchClose() should be called to free allocated resources.