Hello Victor Alan Miranda Cortez,
Thanks for your question.
To my knowledge, If logging wasn’t previously enabled, retrieving past access details isn’t possible. However, to ensure you have this information moving forward, you can set up logging and auditing features in Azure Database for PostgreSQL. See: Configure Logs
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola