There exists an 365 api call to extract these settings from 365, if you could extract these settings well that be great for the users.
Api call :