---
title: "sign in as user · RUAL Documentation"
description: "Sign in a regular user account, this only works for accounts with the setting \"allow_login_as_user\" enabled"
canonical: https://docs.rual.nl/block-types/users/function_user_signin_as
language: en
---

# sign in as user

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

Sign in a regular user account, this only works for accounts with the setting "allow_login_as_user" enabled

- flow `flow`

- User Guid required `value` guid of the user that has "allow_login_as_user" enabled and you wish to login for

- Expire at `v10.6.2` `date` date this session should expire, set as low as possible, shorter sessions are safer

- flow `flow`

- Success `condition` Check if the user successfully signed in!

- error `value` When success is false, The error shows here

- Auth `object` Auth object containing access token and maxAge

- Accesstoken `v12.0.1` `value`

- User `object`

| `login` |
| --- |
| `signin` |

A typical wiring for [sign in as user](https://docs.rual.nl/block-types/users/function_user_signin_as): 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 `user_guid` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the sign in as user block: typical wiring for sign in as user.](https://docs.rual.nl/canvas-examples/function_user_signin_as.png)

### Used in these guides

These documentation pages use or explain this block:

- [Access Token Device Information](https://docs.rual.nl/cluster/user-token-info)

### Version history

Introduced in [`v13.0.5`](https://docs.rual.nl/core-versions/130005).
