# llGetLandOwnerAt

*LSL function*

```lsl
key key llGetLandOwnerAt(vector pos);
```

- `vector pos`: Position vector in region coordinates.

- Returns: `key`
- Energy: 10

Returns the key (UUID) of the land owner at the vector pos, or NULL_KEY if the land is public.

Returns a [key](https://wiki.secondlife.com/wiki/key) that is the land owner at **pos**.

```lsl title="How to use" frame="terminal"
key result = llGetLandOwnerAt(ZERO_VECTOR);
```

## Specification

If the land is in public domain [NULL_KEY](/constants/NULL_KEY/) is returned. This land can be claimed by anyone with available tier. Land on the Preview grid is divvied out this way. Land on the main grid never enters public domain and is instead auctioned off by LL.

If the land is [group](https://wiki.secondlife.com/wiki/group)-owned, the group key is returned.

## Examples

<details open>
<summary>Example 1</summary>

```lsl
default {
    state_entry() {
        //llKey2Name does not work for groups, and it requires avatars to be on sim (owner is not known when absent tested 2019-06-10).
        //Actually printing the owner name (also for groups) is somewhat tricky - if you feel otherwise, please update this example.
        llOwnerSay("The land owner under this object is " + llKey2Name(llGetLandOwnerAt(llGetPos())) + ".");
    }
}
```

</details>

## History

Added in [SL 0.6.0](http://secondlife.wikia.com/wiki/Version_0.6.0)

## See also

### Functions

- [llGetParcelDetails](/functions/llGetParcelDetails/)

---

*Source: [LlGetLandOwnerAt](https://wiki.secondlife.com/wiki/LlGetLandOwnerAt) on the Second Life Wiki. Content from the Second Life Wiki article LlGetLandOwnerAt (revision 1208511, 2019-06-10), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetLandOwnerAt/
