---
schema_version: "1"
id: 45468246b53fe19018ef3ebd9b667c615a56848b197be1080220f14b01ca390c
title: DelegatedAccount
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_delegatedaccount.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_delegatedaccount.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 064cff51b41a59e7010a2d6cb49fce53d09d1921b0bff9aafe79547a77b2ce5d
description: Represents the external managed account. This object is available in API version 49.0 and later.
---
# DelegatedAccount

Represents the external managed account. This object is available in API version 49.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), update(), upsert()

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

When DelegatedAccount records are directly deleted, they aren't sent to the recycle bin and can't be undeleted. The getDeleted() call shows deleted DelegatedAccount records until they're purged, which usually happens the same day or the next day.

## Special Access Rules

You must have a Partner or Customer Community Plus license. You can't edit the visibility of DelegatedAccount metadata on user profiles.

## Fields

| Field | Details |
| --- | --- |
| AccessBuyFor | 
Type

boolean

Properties

Create, Filter, Update

Description

The access that an admin authorizes for an external user to buy for other accounts. This field is available in API version 50.0 and later. A B2B Commerce license is required to use AccessBuyFor.



 |
| AccessManageUsers | 

Type

boolean

Properties

Create, Filter, Update

Description

The access that an admin authorizes for an external user to manage external users on other accounts. This includes managing permission sets, membership, passwords, and activation. This field is available in API version 50.0 and later. Delegated External User Administrator permission is required to use AccessManageUsers.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed a record related to this record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.



 |
| ManagedById | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The ID of the managing user.

This is a relationship field.

Relationship Name

ManagedBy

Relationship Type

Lookup

Refers To

User



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

Name of the external managed account.



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The ID of the record owner.

This is a polymorphic relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

Group, User



 |
| ParentId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the managing users account. This field is available in API version 50.0 and later.

This is a relationship field.

Relationship Name

Parent

Relationship Type

Lookup

Refers To

Account



 |
| TargetId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The ID of the account being managed.

This is a relationship field.

Relationship Name

Target

Relationship Type

Lookup

Refers To

Account



 |