Add get_all_users function and endpoint.