# get_mount_scope_auth_handler · FT4 Rell API · Chromia Docs (concept)

> function get_ mount_ scope_ auth_ handler(auth_ handlers: map<text, _auth_handler >, op_ name: text): _auth_handler ? Retrieves the auth handler that shoul

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.auth/get_mount_scope_auth_handler/

FUNCTION

# get\_mount\_scope\_auth\_handler

```signature
function get_mount_scope_auth_handler(auth_handlers: map<text, _auth_handler>, op_name: text): _auth_handler?
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/auth/module.rell#lines-349)

Retrieves the auth handler that should be applied to the given operation name, only looking
through mount scope auth handlers.

Example:
If the operation `a.b.my_op` is passed, it will return the first auth handler found from
this list:

* an auth handler with scope `a.b`
* an auth handler with scope `a`
* null
  regardless of whether an auth handler with scope `a.b.my_op` exists.

**Parameters**

* **auth\_handlers** — the map returned by `auth_handler()`
* **op\_name** — the mount name of the operation to check

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.core.auth/get_mount_scope_auth_handler.html)Generated API reference, mirrored from the live docs
