---
schema_version: "1"
id: 7899748f54e9317f6509d7bb73c75aa305e7645f8317cd682db605914814f949
title: Access Child Account Objects
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-apis/impersonating_another_user.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/impersonating_another_user.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: bfb6781c9b19f6f605d8c434e0cd67e7a78c32131183268ef014177541b50905
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Access Child Account Objects

To execute certain actions or view information related to a child account, use the permissions and roles assigned to a different user. You can also use impersonation to help another user and troubleshoot their problems or issues inside their own account. You need admin access to perform impersonation.

**note:** These examples are for agency or Enterprise 1.0 with Lock and Publish account types. For Enterprise 2.0 accounts, use the ClientIDs property on a retrieve request to specify multiple child accounts for a single call.

## Sample .NET Code

```csharp
//Options
deo.Client = new ClientID();
deo.Client.ID = Convert.ToInt32(txtMID.Text);
deo.Client.IDSpecified = true;
```

## Sample .NET Code - Retrieve Request with Impersonation

```csharp
RetrieveRequest rr = new RetrieveRequest();
rr.ObjectType = "Send";//required

ClientID rrclient = new ClientID();
rrclient.ID = 12345;
rrclient.IDSpecified = true;

RetrieveOptions ro = new RetrieveOptions();
ro.Client = rrclient;
rr.Options = ro;
```

## Sample SOAP Envelope

```xml
XXXXX<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header>
      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken wsu:Id="UsernameToken-32259181" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>XXXXXXX</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXXX</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
   <soapenv:Body>
      <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
         <RetrieveRequest>
            <ClientIDs>
               <ID>12345</ID>
            </ClientIDs>
            <ObjectType>Subscriber</ObjectType>
            <Properties>ID</Properties>
            <Properties>PartnerKey</Properties>
            <Properties>CreatedDate</Properties>
            <Properties>Client.ID</Properties>
            <Properties>Client.PartnerClientKey</Properties>
            <Properties>EmailAddress</Properties>
            <Properties>SubscriberKey</Properties>
            <Properties>Status</Properties>
            <Properties>UnsubscribedDate</Properties>
            <!--<Filter xsi:type="SimpleFilterPart">
               <Property>SubscriberKey</Property>
               <SimpleOperator>equals</SimpleOperator>
               <Value>123456</Value>
            </Filter>
-->
         </RetrieveRequest>
         <QueryAllAccounts>true</QueryAllAccounts>
      </RetrieveRequestMsg>
   </soapenv:Body>
</soapenv:Envelope>
```
