# observe\_user\_is\_enabled/2

Source: https://zotonic.com/docs/1451/observe_user_is_enabled-2

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

Language: en



Check if a user is enabled. Enabled users are allowed to log in. Return `true`, `false` or `undefined`. If `undefined` is returned, the user is considered enabled if the user resource is published.

Type:

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

Return:

`#user_is_enabled{}` properties:

- id: `m_rsc:resource_id()`

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1451?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/1451?language=en>)
