Get-AzureADUser -SearchString user1@xyz | Get-AzureADUserMembership -All $true | % {Get-AzureADObjectByObjectId -ObjectId $_.ObjectId | select-object DisplayName,Mail,ObjectType,MailEnabled,SecurityEnabled,ObjectId} | Export-Csv -Path 'C:\new_folder\UserDetails.csv'
Showing posts with label Azure AD. Show all posts
Showing posts with label Azure AD. Show all posts
Force delete group object from soft delete/deleted group
Now let’s run this one to get the group GUID from the deleted list
- Get-AzureADMSDeletedGroup
Copy that GUID of the desired group and run the following by targeting that ID.
- Remove-AzureADMSDeletedDirectoryObject -Id <ReplaceWithGroupID>
It should result as follows if it was success
To ensure the deletion is successful, run the same command again and see if it doesn’t return the group name you deleted. It shouldn’t !
- Get-AzureADMSDeletedGroup
Manager AAD groups from user accessible portal
Manager AAD groups from user accessible portal
1. https://account.activedirectory.windowsazure.com/r#/groups
or
2. https://myapplications.microsoft.com/