Join Azure AD devices does not show UPN as profile for user folder name

  • 1 year ago
Comment

1 / 1

When you join a device to Azure AD, the user profile folder name on the device is automatically created based on the name of the user account in Azure AD. However, the profile folder name does not always match the user principal name (UPN) of the user in Azure AD.

To change the profile folder name to match the UPN of the user, you can follow these steps:

  1. Sign out of the device: Before you make any changes, sign out of the device and sign in with a local administrator account.

  2. Rename the user profile folder: Open File Explorer and navigate to the "C:\Users" folder. Find the user profile folder that you want to rename, right-click on it, and select "Rename". Change the folder name to match the UPN of the user in Azure AD.

  3. Modify the registry: Open the Registry Editor by typing "regedit" in the Start menu search box and pressing Enter. Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  4. Find the SID of the user profile: In the "ProfileList" key, you should see a list of SIDs corresponding to the user profiles on the device. Find the SID of the user profile that you renamed in step 2. You can match the SID to the user profile folder by looking at the "ProfileImagePath" value in each key.

  5. Update the "ProfileImagePath" value: Double-click on the registry key for the user profile that you renamed in step 2. In the "Edit String" dialog box, change the value of the "ProfileImagePath" field to match the new name of the user profile folder. Click "OK" to save the changes.

  6. Sign in with the user account: Sign out of the local administrator account and sign in with the user account that you just renamed. The user profile folder should now match the UPN of the user in Azure AD.

By following these steps, you can change the user profile folder name on a device joined to Azure AD to match the UPN of the user. Note that modifying the registry can be risky, so be sure to create a backup before making any changes.