Showing posts with label Azure AD. Show all posts
Showing posts with label Azure AD. Show all posts

Get User groups detail


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'

Force delete group object from soft delete/deleted group

Article - Permanently deleting an Office 365 Group object in retention enabled environment – Microsoft Cloud Infrastructure Technical Journal (wordpress.com)

Now let’s run this one to get the group GUID from the deleted list

  • Get-AzureADMSDeletedGroup

1
image

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

clip_image001

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/