GetManagedDomainsByUser API

Returns the list of domains/libraries that the specified user has management (administration) rights on. If the calling user has the ListLibrariesForAdministration system right and is querying themselves, all libraries are returned. Otherwise, only libraries where the specified user is listed as a domain manager are returned.

Endpoint

/srv.asmx/GetManagedDomainsByUser

Methods

Parameters

Parameter Type Required Description
authenticationTicket string Yes Authentication ticket obtained from AuthenticateUser
userName string Yes The username of the user whose managed domains to retrieve

Response

Success Response

<root success="true">
  <domains>
    <domain DomainID="1" DomainName="MyLibrary" AnonymousDomain="FALSE" IsArchive="FALSE" IsHidden="FALSE" WelcomeMessage="Welcome to MyLibrary" />
    <domain DomainID="5" DomainName="HRDocuments" AnonymousDomain="FALSE" IsArchive="TRUE" IsHidden="FALSE" WelcomeMessage="" />
    <!-- ... additional domain elements ... -->
  </domains>
</root>

Response Attributes

Each <domain> element contains the following attributes:

Attribute Type Description
DomainID int Unique identifier of the domain/library
DomainName string Name of the domain/library
AnonymousDomain string TRUE if anonymous access is enabled, FALSE otherwise
IsArchive string TRUE if this is an archive domain, FALSE otherwise
IsHidden string TRUE if the domain is hidden, FALSE otherwise
WelcomeMessage string Welcome message configured for the domain (may be empty)

Error Response

<root success="false" error="[ErrorCode] Error message" />

Required Permissions

The caller must be authenticated. The results are scoped based on the caller's privileges:

Example

Request (GET)

GET /srv.asmx/GetManagedDomainsByUser?authenticationTicket=abc123-def456&userName=jsmith HTTP/1.1

Request (POST)

POST /srv.asmx/GetManagedDomainsByUser HTTP/1.1
Content-Type: application/x-www-form-urlencoded

authenticationTicket=abc123-def456&userName=jsmith

Request (SOAP 1.1)

POST /srv.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/GetManagedDomainsByUser"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetManagedDomainsByUser xmlns="http://tempuri.org/">
      <authenticationTicket>abc123-def456</authenticationTicket>
      <userName>jsmith</userName>
    </GetManagedDomainsByUser>
  </soap:Body>
</soap:Envelope>

Notes