Forum Discussion
How to get the date of, when a member was added to a security azure active directory group ?
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
3 Replies
- farismalaebIron Contributor
From my understanding, this information is not available via user properties, more than you will need to check the audit information and the logging.
- John_Bloggs_Patrick_M400Copper Contributor
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 .
- farismalaebIron Contributor
This link might Guide you how to do it
https://docs.microsoft.com/en-us/powershell/module/exchange/search-unifiedauditlog?view=exchange-ps