RetrieveSubsidiaryUsersBusinessUnit Message

banner art

Retrieves all user information from the child business units of the specified business unit.

The relevant classes are specified in the following table.

Type Class
Request RetrieveSubsidiaryUsersBusinessUnitRequest
Response RetrieveSubsidiaryUsersBusinessUnitResponse
Entity businessunit


To perform this action, the caller must have access rights on the business unit entity instance. For a list of required privileges, see RetrieveSubsidiaryUsersBusinessUnit Privileges.


The following code example demonstrates how to use the RetrieveSubsidiaryUsersBusinessUnit message.

// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the request.
RetrieveSubsidiaryUsersBusinessUnitRequest retrieve = new RetrieveSubsidiaryUsersBusinessUnitRequest();
retrieve.EntityId = new Guid("18ECA720-493E-4800-BBFD-638BD54EB325");
retrieve.ReturnDynamicEntities = true;

// Execute the request.
RetrieveSubsidiaryUsersBusinessUnitResponse retrieved = (RetrieveSubsidiaryUsersBusinessUnitResponse) service.Execute(retrieve);
[Visual Basic .NET]
' Set up the CRM Service.
Dim service As New CrmService()
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create the request.
Dim retrieve As New RetrieveSubsidiaryUsersBusinessUnitRequest()
retrieve.EntityId = new Guid("18ECA720-493E-4800-BBFD-638BD54EB325");
retrieve.ReturnDynamicEntities = True

' Execute the request.
Dim retrieved As RetrieveSubsidiaryUsersBusinessUnitResponse = CType(service.Execute(retrieve), RetrieveSubsidiaryUsersBusinessUnitResponse)

Related Topics

CrmService Messages

© 2007 Microsoft Corporation. All rights reserved.