Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing assignment "All devices - Filters" #178

Closed
royklo opened this issue Dec 5, 2023 · 4 comments
Closed

Importing assignment "All devices - Filters" #178

royklo opened this issue Dec 5, 2023 · 4 comments

Comments

@royklo
Copy link

royklo commented Dec 5, 2023

When I exported a setting catalog policy from my staging tenant and imported it to my test tenant. I noticed that it doesn't adds the correct filter on it.

Below I added a screenshot. As you can see, it will show "No access". But the windows 11 filter is there.

image
image

@Micke-K
Copy link
Owner

Micke-K commented Dec 5, 2023

Hello,

Anything in the log during the import?

It should cache all Assignment Filters it finds in the exported folder. It then loads the objects in the target environment based on name and adds that to the cache object. During import it will then replace original IDs with target tenant IDs before importing a json eg object or assignment.

Normal issue with this is

  • Migration Table not used during import
  • Folder for dependency object (AssignmentFilters) not found during import
  • Space in the name in one environment.
  • I've missed something

Log should hopefully give an hint why it is not set during import.

Cheers!

@royklo
Copy link
Author

royklo commented Dec 7, 2023

Hi,

There are my findings. Hopefully this will give you some more information.

Replace - No changes
Update - No changes
Skip if object exists - no changes (makes sense)
Always import - Imports policy including assignment and filters (makes sense)

image

@Micke-K
Copy link
Owner

Micke-K commented Dec 10, 2023

Hello,

This is by the current design. Update will only update settings and not the Assignment. With replace, it will copy the assignments of the old object over to the new. This was me being carful when updating policies or moving them between environments.. I'm never comfortable when importing policies + assignments. Especially when All Users or All Devices is used.

I might revisit this design though in the future if there is a request for it. I don't know how many actually import policies with assignments and also would need a functionality like this where the actual assignments are updated.

Cheers!

@Micke-K
Copy link
Owner

Micke-K commented Jan 2, 2024

Closing this as by design. I will have it in mind during future development.

@Micke-K Micke-K closed this as completed Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants