EvanBasalik / OOFSponder

12 stars 4 forks source link

Implementation of MicrosoftSupport - using PSObject #25

Closed vivesg closed 3 years ago

vivesg commented 3 years ago

Backend with PSObject Not an elegant solution but functional, i added this in a couple of hours of investigation. It works but sure could be improved :)

EvanBasalik commented 3 years ago

Confused - why the need to do it with PowerShell? If we go the route of hard-coding the tenant IDs, we can just change the tenant ID when we make the call to set OOF.

EvanBasalik commented 3 years ago

ooooh - I think the why just occurred to me. When doing it with PowerShell, you are running it directly in the context of the user.

The best solution would be to get admin consent granted in the new tenant. We are working on that now.

EvanBasalik commented 3 years ago

I do like the idea of setting against multiple tenants simultaneously. On the roadmap....

vivesg commented 3 years ago

this was intended as a temp workaround only as the Microsoftsupport tenant the app is not registered in this way we don't need to have that permissions setup. I added as a feature in File Enable Alternative backend method as a Beta feature

and uses modern Auth to connect to the exchange online PowerShell to set the OOF Regards,