# observe\_auth\_client\_switch\_user/2

Source: https://zotonic.com/docs/2289/observe_auth_client_switch_user-2

URI: https://zotonic.com/id/2289

Language: en



Send a request to the client to switch users. The zotonic.auth.worker.js will

send a request to controller\_authentication to perform the switch.

Type:

[first](/id/doc_developerguide_notifications#notification-first)

Return:

`ok | {error, term()}`

`#auth_client_switch_user{}` properties:

- user\_id: `m_rsc:resource_id()`

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2289?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2289?language=en>)
