Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

Add warning/confirmation dialogue to export.microsoft365dsc.com if user selects components that are not supported with selected authentication method

Open etec-masterofsynapse opened this issue 1 year ago • 1 comments

As the title says.

If a user of export.microsoft365dsc.com "blindly" selects Full in combination with Credentials, you, at minimum, would have to remove the components PlannerBucket, PlannerPlan and TeamsChannelTab to not also need an AAD Application to fully complete the export.

If the website would give a warning / confirmation dialogue stating the fact that the user selected components not fit for use with only the selected authentication type and gave the option to continue (if the user specifically wants to also give an Application) or exclude problem components from the generated command (to not have to go to the shell with the full command, read the warning in the beginning, come back to the website and remove the components, regenerate and rerun), it would make this process easier.

Also, if a user already runs a script with components that need additional authentication methods, is there currently a way to skip that input step and continue without the additional method(s)? If not, that would be another great addition, otherwise you would have to rerun a maybe already long-running export.

etec-masterofsynapse avatar Aug 23 '22 19:08 etec-masterofsynapse

Great idea. At the moment, we do not gather this information for the website.

There is additional work being made to improve the Export-M365DSCCconfiguration function and the handling of different authentication methods. See #2032 for more details.

andikrueger avatar Aug 25 '22 13:08 andikrueger

Adding @sebastienlevert to the discussions. Not sure what the level of effort would be to determine this.

NikCharlebois avatar Oct 14 '22 17:10 NikCharlebois

@NikCharlebois Since I assume the DSC script itself has the auth dependencies documented already, it would be a matter of translating that to the web backend for user display.

etec-masterofsynapse avatar Oct 14 '22 18:10 etec-masterofsynapse

It's absolutely possible to update the schemas to disable some options based on the selections. @NikCharlebois, do we have a good mapping available? When we run the generation, we could update the code to take it in consideration.

sebastienlevert avatar Oct 18 '22 14:10 sebastienlevert