Feb 14 2021 02:40 PM
Hi everybody,
How to get the date of when a member was added to a security azure active directory group with PowerShell ?
I didn't find any date in the list of properties I could filter such this example below , a filter based on when the user was aded to a group? :
Get-AzureADUser -All $true -Filter "xxxxxxx '20212014'" | select ObjectId | Out-File -FilePath C:\listusers20210211.txt
or with the "Get-AzureADGroupMember" cmdlet
I think it could be a question of audit or PIM but there is a question of AAD P2 licence.
This is typically information you can get in the compliance centre I would to extract the information with powershell to create a list of users based on date which is when a user was added to a security group.
Thank you to the community
Feb 15 2021 09:58 PM
From my understanding, this information is not available via user properties, more than you will need to check the audit information and the logging.
Feb 16 2021 12:46 AM
Hello,
Thank you for your answer/opinion.
I agree with you, this is a audit-related question.
I couldn't find any information about date (creation etc...) to filter in user or group .
Feb 16 2021 12:58 AM
This link might Guide you how to do it
https://docs.microsoft.com/en-us/powershell/module/exchange/search-unifiedauditlog?view=exchange-ps