---
schema_version: "1"
id: d40630e623fe6a04ceb17c7184214ac1ed6fc84ffb2679027ca9562982230ebe
title: UserLocationAssignment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_userlocationassignment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userlocationassignment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a994c5ff2967a8dfbe1ec0ff76d385120d1d80ac919adda413dcd843eac4ed68
description: Represents the assignment between a location and a user. This object is available in API version 57.0 and later.
---
# UserLocationAssignment

Represents the assignment between a location and a user. This object is available in API version 57.0 and later.

## Supported Calls:

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

## Special Access Rules:

This object is only available in Salesforce Order Management orgs.

## Fields

| Field | Details |
| --- | --- |
| UserLocationAssignmentNumber | 
Type

text

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

Auto-generated number for the association



 |
| AssignedTo | 

Type

foreignkey (user)

Properties

Create, Filter, Group, Sort, Update

Description

User being associated with the location



 |
| Location | 

Type

foreignkey (location)

Properties

Create, Filter, Group, Sort, Update

Description

Location being associated to the User



 |
| Username | 

Type

string (derived)

Properties

Filter, Sort

Description

Username of the User that is associated to the Location



 |
| IsActive | 

Type

boolean

Properties

Create, Filter, Group, Sort, Update

Description

Whether the location is active or not



 |

## Usage:

The UserLocationAssignment object associates a user to specified work locations. To assign a user to multiple locations, create Multiple UserLocationAssignment objects. Use the isActive field to indicates the user's current active location.