I want to build a user review application for Azure AD. But unfortunately there is no Azure AD user property that indicates the inviting user.
Is there any way to find out who has invited a guest user?
I want to build a user review application for Azure AD. But unfortunately there is no Azure AD user property that indicates the inviting user.
Is there any way to find out who has invited a guest user?
Yeah you can find out who has invited Guest User
in your tenant. To do this you have two ways:
1. Azure Portal
Monitoring
Click on Audit logs
See the screen shot below:
Azure portal operation you could refer this docs
2. Microsoft Graph API Reference:
You can also retrieve who has invited Guest User
in your tenant using MicrosftGraph
API: See the below steps:
Request URL: https://graph.microsoft.com/v1.0/auditLogs/directoryAudits
Permission Required: AuditLog.Read.All
See the screen shot how would you do it in azure portal
Once you add permission then click on Grant admin consent for YourTenant
Test On Post Man:
You would seen on the picture initiatedBy
your guest user.
If you need more information you could refer this official docs