---
title: "get guid · RUAL Documentation"
description: "Returns the guid (field: _meta.guid) of the given user"
canonical: https://docs.rual.nl/block-types/users/user_get_guid
language: en
---

# get guid

This block is part of the [`users`](https://docs.rual.nl/block-types/users) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Returns the guid (field: _meta.guid) of the given user

- user required `user`

- value `value`

[get guid](https://docs.rual.nl/block-types/users/user_get_guid) takes the user from [current user](https://docs.rual.nl/block-types/users/user_current) and outputs its guid as a plain value. That value typically ends up in a term query, here the selected field of [fields](https://docs.rual.nl/block-types/query/query_bool_term_fields) inside a [must](https://docs.rual.nl/block-types/query/query_bool_must).

![Studio canvas example for the get guid block: from user to guid.](https://docs.rual.nl/canvas-examples/user_get_guid.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [current user](https://docs.rual.nl/block-types/users/user_current): feeds into this block. Returns the current logged-in user object as user-pin.

- [execute](https://docs.rual.nl/block-types/function%20execution/function_custom_execute): this block feeds into it. Executes the given funcion and waits for it to be executed.

- [fields](https://docs.rual.nl/block-types/query/query_bool_term_fields): this block feeds into it.

- [array includes](https://docs.rual.nl/block-types/condition/condition_array_contains_string): this block feeds into it. determines whether an array includes a certain value among its entries.

- [==](https://docs.rual.nl/block-types/condition/condition_equal): this block feeds into it. returns true if the two values are equal.

- [set fields](https://docs.rual.nl/block-types/mutations/mutations_set_bp_field_multiple): this block feeds into it. Generates an array of mutations based on the given filled fields.

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
