<br />

With the My Business Account Management API, you can transfer locations to
different accounts or location groups. Follow the instructions in this
documentation to learn how.

> [!NOTE]
> **Note:** In order to transfer a location, the caller must be an owner of the location and the destination account holder must be at least a manager of the location. For details on how to grant ownership of a listing, see [Manage admins for accounts and locations](https://developers.google.com/my-business/content/manage-admins).

## Get started

The following items are required to transfer locations:

**Source account:** The source account is the account that's an owner of the
location. This account can be a personal account or a location group. After
the transfer is complete the source account no longer has access to the
location.  

**Destination account:** The destination account is the account that the
location should be transferred to. This account can be a personal account
or a location group. After the transfer is complete, the destination account
is the primary owner of the location.  

**OAuth2 refresh/access tokens:** The [OAuth2 refresh/access tokens](https://developers.google.com/identity/protocols/OAuth2)
for the source and destination accounts are needed for each account in order
to call the API.  

## Transfer Locations

> [!NOTE]
> **Note:** Business Profiles have a probation period for location administrators. Once a user is added to a profile as an owner or manager, they will be limited for a period of 7 days in what operations they can perform on the other location's users and the location itself. During this time, users in the probation period won't be able to transfer primary ownership of a profile to themselves or a third user.

To transfer locations, complete the following steps:

1. If you're not an owner of the location, you must become one. Use the
   current business owner's OAuth credentials to call
   [`account.admins.create`](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/accounts.admins/create)
   and invite a user to own the listing. Then, use the invited user's OAuth
   credentials to call
   [`accounts.invitations.list`](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/accounts.invitations/list)
   to obtain the invitation ID. Call
   [`accounts.invitations.accept`](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/accounts.invitations/accept)
   to accept this invitation.

   > [!NOTE]
   > **Note:** The recipient can't be a member of an organization account or user group.

2. Use the intended destination account's OAuth credentials to call
   [`accounts.list`](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/accounts/list).
   Then, find the account ID in the list that you want to transfer the location to.
   The administrator ID in the response to the `account.admins.create` call or the
   `accounts.invitations.list` call in step 1 can also be used as the account ID.
   This account ID can refer to a personal account or a location group.

3. Use the account ID that you retrieved in step 2 as the destination account.
   This is the *destinationAccount* field in the request body, which you can use
   to call
   [`locations.transfer`](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/locations/transfer).

   > [!NOTE]
   > **Note:** After the transfer is complete, the destination account is the primary account associated with the owner of the listing. If this isn't the intended outcome, repeat steps 1-3 with a new user. Then, transfer the location back to the original primary account. You can use the [`accounts.admins.patch`](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/accounts.admins/patch) endpoint to downgrade the administrator role of the original destination account.

Use the destination account's OAuth credentials to call
[`accounts.locations.list`](https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations/list)
and verify that the transferred location appears in the results. If you call the
`accounts.locations.list` endpoint with the source account, the transferred
location isn't included in the results.

## Transfer to a location group

To transfer a location to a `location group` in the organization, call
[`locations.admins.create`](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/locations.admins/create)
using the `merchant` OAuth credentials. Use the `account` field in the
`Admin` resource to pass the `location group account ID` along with the
appropriate `role`. You should use the `location group` administrator
credentials to call
[`accounts.invitations.list`](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/accounts.invitations/list)
using the location group's account ID as the `parent` argument to retrieve
invitations related to the `location group`. Find the invitation that has the
correct target location, and then call
[`accounts.invitations.accept`](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/accounts.invitations/accept)
to accept the correct invitation.