Remove configuration profile

mkessler
New Contributor II

Hey everyone,

We deploy different mail configurations via Self Service which works fine. But in some cases the user wants to remove a profile again. I know that all MDM delivered accounts are listed under Settings -> General -> Profiles -> MDM Profile -> Accounts. But there is no option to remove the profile.

In Jamf i enabled the removal of the profile.

Also i didn't found any option in jamf to remove specific profiles. Is this also not possible?

Thank you all!

17 REPLIES 17

mm2270
Legendary Contributor III

Maybe this thread can help?
https://www.jamf.com/jamf-nation/discussions/33889/using-self-service-to-remove-a-user-profile

Or did you already do this when you stated "In Jamf i enabled the removal of the profile."? If so, I'm wondering exactly what the question or request is here?

mkessler
New Contributor II

Yes, i have that option set, but my user cannot see the 'remove' button. It's just 'Reinstall'. Is there maybe something wrong with my self service?

8a6006b265f24e28bf6a379ed4b7b76c

mm2270
Legendary Contributor III

Hmm, have you tried having them reinstall it first, and then seeing if it flips over to "Remove" in Self Service? I didn't think it involved reinstalling the profile to get that to show up in the application, but I don't know for sure. Maybe it does?

mkessler
New Contributor II

Just tried it again. Even after clicking 'reinstall' the button stays as 'reinstall'. No button to remove, sadly.

mm2270
Legendary Contributor III

Maybe what used to work doesn't work anymore then. I'm pretty sure I tried this out, and it even worked with a profile that was pushed silently. After changing the profile option to install over Self Service and checking that option for removal, it showed up in Self Service with an uninstall or remove button.

But.... I just noticed something! In your screenshot above, the option I see in it is labeled "Security Controls when the profile can be removed". What version of Jamf Pro are you using? Because on my 10.18.0 instance, the option looks different. See what I mean below

0b34c858010a49f1a53eb70abf91a24b

In mine it says "Allow removal - Allow users to remove the profile using Self Service"

So there's some difference between what you're seeing and what I'm seeing that I don't quite understand.

mkessler
New Contributor II

I have 'your' look only within macOS profiles. With iOS profiles i only have the options displayed in 'mine' screenshot...

I am really confused. Since there is an option to make it removeable, but there is no way to remove it...

a_holley
Contributor

I am currently having the exact same issue.
Created a profile in Self Service for mail setup on iOS.
I have the security set to 'Always', but we cannot find a way to remove the profile from the device. User is stuck with mail that isn't working.

j_meister
Contributor II

I also have the problem that the AnyConnect Configuration Profile on our iOS devices is set to "Allow Removal" but there is no way to remove it, not in Self Service not under Settings --> VPN and even the profile is not removable. Any ideas, otherwise I would contact support.

hansen_m
New Contributor III

Seems Jamf is not creating the profiles correctly
ed20c2b928904bd6bbad30ad6c516059

How did you get to this page? I am trying to remove a profile automatically, but I can't seem to find it

 

Robot07_0-1628183964637.png

 

Thank you so much in advance!

hansen_m
New Contributor III

Would this process work to unsign, update the removal key/value pair, and then resign the profile with the JSS CA?

https://www.jamf.com/jamf-nation/discussions/20436/jss-signing-certificate-private-key

mkessler
New Contributor II

Really strange, that they still didn't implant this feature. Seems like such a no-brainer...

Some time ago the support team told me the following:

That is correct, there is no option for removing a profile on an iOS device in Self Service. I have raised this with the Support Team, they are taking it into consideration for a feature request. There is no workaround at the moment I'm afraid, besides moving the device out of scope, which you already mentioned.

:/

hansen_m
New Contributor III

My response from support:

It does look like this is a current Product Issue, and I have tied this case to that Product Issue. This is PI-008020. The current workaround for this on enrolled machines is to change distribution method to 'Make Available in Self Service' and select 'Yes' for 'Allow Removal - Allow users to remove the profile using Self Service'. This would then need to go to Self Service to allow this to be removed. Our development team is aware of this Product Issue and a fix should be available in a future version of Jamf Pro.

akamenev47
Contributor II

This is still not working.... So how do we go around it? Switch the setting to "Install Automatically" > then delete it on JSS and get rid of it that way?

Ahoy!

snowfox
Contributor III

You could add the device/s to the exclusions section under 'scope' for the configuration profile. Then the configuration profile will disappear from the users device the next time the device checks in with the Jamf Pro server.

Be careful to always unscope a configuration profile first, before you delete it from Jamf Pro. And give time for machines to check-in and remove it, before you delete it. if you do not, your devices can get into a race condition with the server. They recieve the removal/deletion command the next time they check-in but the configuration profile has already been deleted from jamf pro. This results in a repeated failed MDM command (to infinity) on any affected clients - the configuration profile does not exist. MDM Error:89

Only deleting the config file record from the backend database can clear the failed MDM commands from repeating on all your affected clients.

I found this out the hard way. Now I'm careful to unscope config files first on the server before deletion.

akamenev47
Contributor II

@snowfox , thanks for the heads up! What if you simply unscope everyone (choose Selected Computers/Users from Scope and just don't select anyone)? Shouldn't that remove the Configuration Profile from all the macs?

Ahoy!

snowfox
Contributor III

Yes that will work too. Remove all users/computers from the TARGETS section of Scope. Make sure 'target computers' and 'target users' drop down menus are set to 'Specific Computers' and 'Specific Users'. Then delete any targets so the bottom list says 'None'. Save your changes and all devices will start removing the configuration profile the next time they check in with jamf Pro.

I previosuly assumed you only wanted to remove it from one or more devices by excluding said devices or users from the scope. You can ofcourse remove all devices and users if you so wish in the target section.