Get access logs for Organization

Hello,

We currently want to implement a functionality where user will be able to show access logs (successfull and failed login attempts) for organization he is currently logged in. Is there some functionality like that present or can you please provide us with some query that we can use to get mentioned results?

Thanks !