---
title: "user exist by service · RUAL Documentation"
description: "Finds a user by oAuth service token."
canonical: https://docs.rual.nl/block-types/users/function_user_exists_by_service
language: en
---

# user exist by service

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

Finds a user by oAuth service token.

- flow `flow`

- service token required `value` The unique service token ({service}-{token}) used in our oAuth flows.

- flow `flow`

- user `user` Returns the user if one was found matching this oauth service token.

- exists `condition` Returns `true` if a user matched the given service token.

A typical wiring for [user exist by service](https://docs.rual.nl/block-types/users/function_user_exists_by_service): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `service_token` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the user exist by service block: typical wiring for user exist by service.](https://docs.rual.nl/canvas-examples/function_user_exists_by_service.png)

### Version history

Introduced in [`v12.0.3`](https://docs.rual.nl/core-versions/120003).
