IntuneManagement icon indicating copy to clipboard operation
IntuneManagement copied to clipboard

Un-ticking Export Assignments still exports Settings Catalog Assignments

Open SkipToTheEndpoint opened this issue 1 year ago • 2 comments

Hey there!

It was brought to my attention that the export I'd made for my OpenIntuneBaseline project using the tool still imported some "All Users" and "All Devices" assignments for Settings Catalog policies even though I had "Export Assignments" disabled.

It only seems to be if they're assigned to the virtual All Users/Devices groups, if they have an actual group assigned this is not exported, which I don't imagine is the intended behaviour.

Thanks!

SkipToTheEndpoint avatar Oct 27 '23 15:10 SkipToTheEndpoint

Hello!

Thank you for reporting this.

I think I found the reason. Some parts doesn't make sense though. Like why it only happens when deployed to All Users/All Devices.

Can you try the attached update?

BTW...great GitHub repo! Do you mind if I start looking into supporting import directly from the tool? I have been thinking about it for a while. Not sure when/if I get the time and if it would be used but just as an option. I've been thinking about adding support for GitHub import a long time now.

Cheers!

EndpointManager.zip

Micke-K avatar Oct 29 '23 11:10 Micke-K

From a quick test and glance whatever you've done there seems to have resolved it, and it's not exporting the All Users/Devices assignments on a bulk export. I'm going to try another export/import cycle just to be sure.

Thanks for your kind words! As for the functionality of being able to import directly from a repo, and there's definitely other projects which are focused around doing similar things via CI/CD. I think it'd make an interesting option to have, though I'm not sure how much time it would save people. I'd also always discourage people yeeting something straight into their production environment, though I wouldn't have known about this bug if someone I know didn't do exactly that and very quickly tell me!

SkipToTheEndpoint avatar Oct 30 '23 17:10 SkipToTheEndpoint