AlexFilipin / ConditionalAccess

MIT License
274 stars 72 forks source link

Feature/enable downloading and updating existing policies #37

Open szymonbr opened 1 year ago

szymonbr commented 1 year ago

I've developed a script for dowloading deployed Conditional Access policies into the repo to versionize them and track changes over time. Also thanks to that updating policies is enabled without need to manually add IDs of policies into policy templates.

Policy IDs cannot be added to policy templates in any policy set because in case of using rings there are multiple policies created by the same template.

Updating existing policies requires to download currently implemented ones first.

Object IDs in downloaded policies are replaced with respective object display names for improving readability.

I hope you find it useful. In my case it does the job properly.

As it's my very first public contribution any suggestions to improve code quality or whatever are very much appreciated. :)

AlexFilipin commented 1 year ago

I will try to find some time this weekend to take a closer look and merge - thanks for the contribution!