Skip to content

Org365Settings: Issue with ToDo permissions or URL? #6868

@1Dimitri

Description

@1Dimitri

Description of the issue

I'm reading and updating various properties of the Org365Settings resource.
My Application has the permission OrgSettings-ToDo.ReadWrite,All as specified in https://github.com/microsoft/Microsoft365DSC/blob/Dev/Modules/Microsoft365DSC/DSCResources/MSFT_O365OrgSettings/settings.json

Image

However a Verbose trace shows that the GraphAPI is complaining about permissions;
But from https://learn.microsoft.com/en-us/graph/api/admintodo-get?view=graph-rest-beta&tabs=http it seems that the REST API is not todo/Settings but todo

Could you have a look?

Microsoft 365 DSC Version

1.26.128.1

Which workloads are affected

Office 365 Admin

The DSC configuration

# Generated with Microsoft365DSC version 1.26.128.1
# For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSC
param (
)

Configuration M365TenantConfig
{
    param (
    )

    $OrganizationName = $ConfigurationData.NonNodeData.OrganizationName

    Import-DscResource -ModuleName 'Microsoft365DSC' -ModuleVersion '1.26.128.1'

    Node localhost
    {
        O365OrgSettings "O365OrgSettings"
        {
            AdminCenterReportDisplayConcealedNames                = $True;
            AllowPlannerCopilot                                   = $True;
            ApplicationId                                         = $ConfigurationData.NonNodeData.ApplicationId;
            AppsAndServicesIsAppAndServicesTrialEnabled           = $False;
            AppsAndServicesIsOfficeStoreEnabled                   = $False;
            CertificateThumbprint                                 = $ConfigurationData.NonNodeData.CertificateThumbprint;
            DynamicsCustomerVoiceIsInOrgFormsPhishingScanEnabled  = $True;
            DynamicsCustomerVoiceIsRecordIdentityByDefaultEnabled = $True;
            DynamicsCustomerVoiceIsRestrictedSurveyAccessEnabled  = $False;
            FormsIsBingImageSearchEnabled                         = $False;
            FormsIsExternalSendFormEnabled                        = $False;
            FormsIsExternalShareCollaborationEnabled              = $False;
            FormsIsExternalShareResultEnabled                     = $False;
            FormsIsExternalShareTemplateEnabled                   = $False;
            FormsIsInOrgFormsPhishingScanEnabled                  = $True;
            FormsIsRecordIdentityByDefaultEnabled                 = $True;
            InstallationOptionsAppsForMac                         = @();
            InstallationOptionsAppsForWindows                     = @();
            InstallationOptionsUpdateChannel                      = "current";
            IsSingleInstance                                      = "Yes";
            M365WebEnableUsersToOpenFilesFrom3PStorage            = $False;
            PlannerAllowCalendarSharing                           = $True;
            TenantId                                              = $OrganizationName;
            VivaInsightsDigestEmail                               = $True;
            VivaInsightsOutlookAddInAndInlineSuggestions          = $True;
            VivaInsightsScheduleSendSuggestions                   = $True;
            VivaInsightsWebExperience                             = $True;

            #
            CortanaEnabled = $False;
            ToDoIsExternalJoinEnabled	= $True ;
            ToDoIsExternalShareEnabled = $True ;	
            ToDoIsPushNotificationEnabled	= $True;
            
        }
    }
}

M365TenantConfig -ConfigurationData .\ConfigurationData.psd1

Verbose logs showing the problem

https://graph.microsoft.com/beta/admin/reportSettings with 0-byte payload
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] received 121-byte
response of content type application/json
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] GET
https://graph.microsoft.com/beta/admin/microsoft365Apps/installationOptions with 0-byte payload
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] received 358-byte
response of content type application/json
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] GET
https://graph.microsoft.com/beta/admin/forms/settings with 0-byte payload
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] received 348-byte
response of content type application/json
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] GET
https://graph.microsoft.com/beta/admin/dynamics/customerVoice with 0-byte payload
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] received 211-byte
response of content type application/json
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] GET
https://graph.microsoft.com/beta/admin/appsAndServices/settings with 0-byte payload
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] received 160-byte
response of content type application/json
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] GET
https://graph.microsoft.com/beta/admin/todo/settings with 0-byte payload
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] received 201-byte
response of content type application/json
VERBOSE: [XXXXX]:                            [[O365OrgSettings]O365OrgSettings] Not able to retrieve
ToDo settings. Please ensure correct permissions have been granted.

Environment Information + PowerShell Version

OsName               : Microsoft Windows Server 2022 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 20348.1.amd64fre.fe_release.210507-1500
OsLanguage           : en-US
OsMuiLanguages       : {en-US}


Name                           Value
----                           -----
PSVersion                      5.1.20348.4294
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.20348.4294
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions