How to remove UPN from Intune Devices

%3CLINGO-SUB%20id%3D%22lingo-sub-2311612%22%20slang%3D%22en-US%22%3EHow%20to%20remove%20UPN%20from%20Intune%20Devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2311612%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20Intune%20devices%20that%20have%20more%20than%20one%20UPN%20listed.%26nbsp%3B%20Here's%20an%20example%20where%20each%20colour%20is%20a%20different%20user%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kbrox_0-1619801360865.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277102i63705AC0013A73EC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kbrox_0-1619801360865.png%22%20alt%3D%22kbrox_0-1619801360865.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20Primary%20user%20was%20set%20on%20the%20Properties%20setting%20months%20ago%20for%20this%20device%20and%20is%20one%20of%20the%20UPN%20listed%20which%20I%20want%20kept%20but%20the%20rest%20removed.%20How%20do%20I%20do%20this%3F%26nbsp%3B%20Note%3A%20that%20the%20device%20has%20checked%20in%20on%20Intune%20as%20recently%20as%20today.%20TIA%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2311612%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2311693%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20remove%20UPN%20from%20Intune%20Devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2311693%22%20slang%3D%22en-US%22%3EThat's%20indeed%20a%20very%20good%20question...%3CBR%20%2F%3E%3CBR%20%2F%3E*Are%20the%20other%20users%20on%20the%20picture%20still%20enabled%2Favailable%3F%3CBR%20%2F%3E*You%20are%20showing%20compliance%20policies%2C%20are%20you%20experiencing%20any%20problems%20%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2311730%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20remove%20UPN%20from%20Intune%20Devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2311730%22%20slang%3D%22en-US%22%3EYes%2C%20the%20other%20users%20are%20still%20active%20in%20Azure%20AD.%3CBR%20%2F%3EYou%20are%20correct%20that%20the%20snippet%20is%20taken%20from%20the%20Compliance%20policies%20of%20the%20device.%20Recently%2C%20these%20policies%20were%20switched%20from%20being%20evaluated%20by%20User%20to%20evaluate%20by%20device.%20I'm%20looking%20to%20clean%20the%20Compliance%20policy%20page%20so%20that%20it's%20less%20confusing%20to%20figure%20out%20what%20policies%20it's%20failing%20on.%3C%2FLINGO-BODY%3E
New Contributor

I have Intune devices that have more than one UPN listed.  Here's an example where each colour is a different user:

kbrox_0-1619801360865.png

The Primary user was set on the Properties setting months ago for this device and is one of the UPN listed which I want kept but the rest removed. How do I do this?  Note: that the device has checked in on Intune as recently as today. TIA

5 Replies
That's indeed a very good question...

*Are the other users on the picture still enabled/available?
*You are showing compliance policies, are you experiencing any problems ?
Yes, the other users are still active in Azure AD.
You are correct that the snippet is taken from the Compliance policies of the device. Recently, these policies were switched from being evaluated by User to evaluate by device. I'm looking to clean the Compliance policy page so that it's less confusing to figure out what policies it's failing on.
Hi,

Could you explain what you mean with the sentence: Switches to be evaluated by device instead of user. --> device compliance policys (except the default compliance policy, when the primary user leaves/is disabled etc)
Our compliance policies were originally set up to evaluate based on the user's profile on the devices. Therefore if the user's profile wasn't removed from the system after the device was re-assigned to new user, both users would be evaluated for compliance. This increased our numbers of non-compliant devices if more than one user listed on the machine was non-compliant. For example Device #1 had user 1 & 2 who were not compliant, then it would count twice on compliance status. After a call with Microsoft support who pointed this out, the compliance policies were recreated to evaluate by device thereby reducing the non-compliant status numbers.

@kbrox 

 

Hi,

Thats one of the default (built in) compliance policies. If the primary owner is not logged in for an amount of days, it's not compliant anymore. If the primary user is disabled/deleted the device would be non compliant.

I guess just like you did I grouped all compliance policies into categories for some easier troubleshooting

 

Rudy_Ooms_0-1619812578762.png