@Abhay Chandramouli • Thank you for reaching out.
You can use Graph API to fetch all the user details and information from the Audit logs as well.
To get user details, you can either use Graph API beta endpoint which returns an extensive output with all the user attributes such as username, some custom attributes, mobile, email, etc. or use v1 endpoint with the $select=required attributes:
- GET https://graph.microsoft.com/beta/users/object_id_of_the_user
- Use $select to retrieve specific properties of a user
For Activity logs such as Directory audit and Sign-in logs, you can use the below Graph API:
https://learn.microsoft.com/en-us/graph/api/resources/azure-ad-auditlog-overview?view=graph-rest-1.0
You can also consider combining multiple requests in one HTTP call using JSON batching.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.