How to get the date of, when a member was added to a security azure active directory group ?

%3CLINGO-SUB%20id%3D%22lingo-sub-2134409%22%20slang%3D%22en-US%22%3EHow%20to%20get%20the%20date%20of%2C%20when%20a%20member%20was%20added%20to%20a%20security%20azure%20active%20directory%20group%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2134409%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%20everybody%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20to%20get%20the%20date%20of%20when%20a%20member%20was%20added%20to%20a%20security%20azure%20active%20directory%20group%20with%20PowerShell%20%3F%3C%2FP%3E%3CP%3EI%20didn't%20find%20any%20date%20in%20the%20list%20of%20properties%26nbsp%3B%20I%20could%20filter%20such%20this%20example%20below%20%2C%20a%20filter%20based%20on%20when%20the%20user%20was%20aded%20to%20a%20group%3F%20%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3EGet-AzureADUser%20-All%20%24true%20-Filter%20%22xxxxxxx%20'20212014'%22%20%7C%20select%20ObjectId%20%7C%20Out-File%20-FilePath%20C%3A%5Clistusers20210211.txt%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Eor%20with%20the%20%22Get-AzureADGroupMember%22%20cmdlet%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20think%20it%20could%20be%20a%20question%20of%20audit%20or%20PIM%20but%20there%20is%20a%20question%20of%20AAD%20P2%20licence.%3C%2FP%3E%3CP%3EThis%20is%20typically%20information%20you%20can%20get%20in%20the%20compliance%20centre%20I%20would%20to%20extract%20the%20information%20with%20powershell%20to%20create%20a%20list%20of%20users%20based%20on%20date%20which%20is%20when%20a%20user%20was%20added%20to%20a%20security%20group.%3C%2FP%3E%3CP%3EThank%20you%20to%20the%20community%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2134409%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Active%20Directory%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2138290%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20get%20the%20date%20of%2C%20when%20a%20member%20was%20added%20to%20a%20security%20azure%20active%20directory%20group%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2138290%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F886864%22%20target%3D%22_blank%22%3E%40John_Bloggs_Patrick_M400%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20my%20understanding%2C%20this%20information%20is%20not%20available%20via%20user%20properties%2C%20more%20than%20you%20will%20need%20to%20check%20the%20audit%20information%20and%20the%20logging.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

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

@John_Bloggs_Patrick_M400 

From my understanding, this information is not available via user properties, more than you will need to check the audit information and the logging. 

 

@farismalaeb 

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 .