My rule only give a role on the second login

Hello @AbdurrahmanDundar,

Just to clarify as well, are you manually adding users, or are users signing up on your app themselves? Rules run after successful authentication, so I was wondering if the role is not being assigned because users are being added manually and have not logged in yet.

If you are manually adding users to a database connection, then you may want to use a Post User Registration Hook. This hook runs after users are created for a database connection (so it will not run after someone logs in with a social connection, but it will run if a user is manually created). Let me know if you’d like more details about how to set that up if that is the case!