Convert Azure AD Guest to member

It could become necessary to treat an Azure AD Guest like “proper” user. I.e. in order to assign him O365 licenses. In our case we had to have a user which is a full blown member in 2 Azure AD tenants in order to move a VSTS subscription from one tenant to another.

The steps are quite simple:

  1. Invite user as guest (of course it mustn’t be an address which is registered with either tenant)
  2. Open PowerShell
    $GuestAccount = "testuser@gmail.com"
    Connect-AzureAD
    Get-AzureADUser -SearchString $GuestAccount | Set-AzureADUser -UserType Member
  3. Now the guest account is a member and can be treated like a normal user