pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
991 stars 662 forks source link

Is there a way to get the Created Date of a User with Get-PnPUserProfileProperty #1622

Open rodmerritt opened 6 years ago

rodmerritt commented 6 years ago

Is there a way to get the Created Date of a User with Get-PnPUserProfileProperty. If there is a help forum for this project where is it located?

arjancornelissen commented 6 years ago

I do not think that is possible You can get the date of the Personal site creation. $user = Get-PnPUserProfileProperty -Account $user = Get-PnPUserProfileProperty -Account arjan@arjancornelissen.nl

You can only get this thru the audit logging in Azure AD. But these audit logs go back only 30 days. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-reporting-activity-audit-logs