Logins_count is undefined

Hi @ysharat,

Thanks for the reply.

Unfortunately, the last_login attribute is not a callable attribute in the Post-Login action script.

To get the value in the action script, you must use the Management API to get the user’s last_login. See How can I use the Management API in Actions?.

Alternatively, you could append this information to the user_metadata and get it in the action script (event.user.user_metadata.last_login).

Thanks,
Rueben